Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple Ruby script to help me organize my personal camera pictures by date and time.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 COPYING
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.textile
Octocat-spinner-32 photo-organizer.rb
README.textile

Photo Organizer

photo-organizer is ruby script that sorts your pictures into directories named after the date and names your files after the time they were taken using EXIF metadata.

Dependencies

Usage

photo-organizer.rb [options]
    -d DIRECTORY,                    Specify the directory to grab the pictures from
        --working-directory
    -x, --[no-]delete-source         Delete the source files
    -o, --[no-]adjust-orientation    Adjust the picture orientation if orientation specified in EXIF metadata

Example:

[fms@Atreiades Photos]$ ls -a
.            DSCN0013.JPG DSCN0017.JPG DSCN0021.JPG DSCN0025.JPG DSCN0029.JPG
..           DSCN0014.JPG DSCN0018.JPG DSCN0022.JPG DSCN0026.JPG DSCN0030.JPG
.DS_Store    DSCN0015.JPG DSCN0019.JPG DSCN0023.JPG DSCN0027.JPG
DSCN0012.JPG DSCN0016.JPG DSCN0020.JPG DSCN0024.JPG DSCN0028.JPG

[fms@Atreiades photo-organizer]$ ./photo-organizer.rb -d /Volumes/Data/fms/Pictures/Photos/ -x

[fms@Atreiades Photos]$ ls -a
.           ..          .DS_Store   2011-01-12

[fms@Atreiades Photos]$ ls -a 2011-01-12/
.            08-55-45.JPG 09-02-23.JPG 16-20-45.JPG 16-45-13.JPG 16-58-13.JPG
..           08-56-14.JPG 09-07-20.JPG 16-42-50.JPG 16-51-59.JPG
08-50-01.JPG 08-58-30.JPG 15-10-29.JPG 16-43-36.JPG 16-52-09.JPG
08-53-49.JPG 08-58-39.JPG 15-27-30.JPG 16-44-58.JPG 16-55-30.JPG
Something went wrong with that request. Please try again.