Hacker News new | past | comments | ask | show | jobs | submit login

If you want to go a small step further you might consider using exiftool to rename all your photos by date. I do this to make sorting and identifying them easier. If you assume fewer than 999 photos/day, this command will rename JPEG files to YYYY-MM-DD-NNN (where 'NNN' = 001-999 in strictly chronological order). Run it in any parent directory when you want all photos there + all subdirectories renamed accordingly.

  exiftool -fileOrder DateTimeOriginal -recurse -extension jpg -extension jpeg -ignoreMinorErrors '-FileName<CreateDate' -d %Y-%m-%d%%-.3nc.%%e .
Make sure those camera clocks are set correctly! Just like with servers, it's easiest if you always use GMT/UTC time.

This is especially cool when you have a collection of photos from an event taken by multiple people, because you see everything in the order in which they were takes regardless of which camera took them (again, assumes clock was correct).




I'm an exiftool user and photographer that's been using exif datetime to rename files to YYYYMMDD_hhmmss_nn.ext since 2001. I saw it as a great acknowledgement when Google switched to this format for their Camera files in Android. The only thing that differs between my scheme and theirs is the _nn. It normally says _00, but if there's more than one image taken for a second it will go upwards(_01, _02 etc).


I've had this same scheme too since 1998 using bash scripts to rename. Including the two-digit numbering for n pictures per second. Might have to change it to more digits soon. Typical for Google that they left off that refinement.


Yeah, I use EXIF data to sort them into year/month directories, and just keep the incremental integer IDs assigned by my phone. Seems to work pretty well. If I had two cameras at once, I'd have to start renaming them.

Thanks for the pointer. I've never actually used exiftool before - just use a go library for parsing the same thing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: