Managing your personal photos and videos

From Urandom
Jump to: navigation, search

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