Managing your personal photos and videos
From Urandom
Revision as of 11:17, 2 January 2013 by Martivo (talk | contribs) (Created page with "Recently i discovered that my photos and videos were a mess, all the pictures were stored in different locations and the folders were named quite randomly. Not to mention all the…")
Recently i discovered that my photos and videos were a mess, all the pictures were stored in different locations and the folders were named quite randomly. Not to mention all the duplicates.
A bit of searching revealed to me a program called "jhead", it will help you arange the pictures into a structured directory tree.
jhead -n%Y/%m/%d/%f *.jpg
This will sort all the images into a YEAR/MONTH/DAY directory tree. It will use the exif data and if that does not exist then the file system data.
If you want to do this recursively then
find . -type f -print0 | xargs -0 jhead -nf%y/%m/%d/%f