Skip to main content
This example renames every photo using its reverse-geocoded address combined with the taken date and time, preserving the original folder hierarchy. After running this command, every file name tells you exactly when and where the photo was taken without having to open it.

Command

Key arguments

Before and after

Before (photos/):
After (organized-albums/):

What you see in the output

Every photo with a GPS coordinate and a taken date is renamed to combine the address and the timestamp. For example, DSC_5727.jpg (taken in Kenya) becomes Kenya-2005.08.13_09.47.23.jpg. The ten photos taken in Arezzo on the same day share the same address prefix; the two taken at exactly 17.00.07 get a -1 and -2 suffix. Photos that have a taken date but no GPS coordinate are moved into a no-address subfolder inside their original parent folder. Italy album/IMG_2371.jpg ends up at Italy album/no-address/IMG_2371.jpg. Photos with neither a date nor a coordinate go into no-address-and-no-photo-taken-date/. The original folder names (Italy album, Spain Journey) are kept unchanged. Only the file names change.
This naming style gives you a self-describing archive: you can identify when and where any photo was taken just from its file name, without opening it. It works well when you share individual files via email or messaging apps, where folder context is lost.