Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'One more alternative - jhead' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
One more alternative - jhead
Authored by: haighy on Apr 03, '03 02:26:11AM

I use a program called jhead to rename my photos. It's written in C, so it's very fast...the link above has a pre-compiled OS X binary, but I built it from source with no problems.

The nice thing about this program is that it extracts image info from the EXIF header, so it's completely independent of the file's creation or modification time. Furthermore, it can reset the modification time of the actual JPEG to match that given in the EXIF metadata (in case you've rotated the pic in Photoshop, for example).

This one-liner renames an image in the form YYYY-MM-DD_hh-mm-ss, so that 'View by name' will list all files in chronological order, accurate to the second:

jhead -nf%Y-%m-%d_%H-%M-%S [files...]

Now cataloging those lurching, blurred, drunken mugshots is a breeze.



[ Reply to This | # ]
One more alternative - jhead
Authored by: dimus on Apr 03, '03 11:35:03AM

This is a great idea to use exif data for the date.
I'll try to figure out how to parse out the date from exif. If i'll succeed I'll post an updated script.



[ Reply to This | # ]