Skip to main content
This example prefixes each folder name with the date range of the photos inside it — showing the earliest and latest taken dates — while renaming every file with its reverse-geocoded address and day. The original folder hierarchy is preserved; only the names change.

Command

Key arguments

Before and after

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

What you see in the output

The Italy album folder is renamed 2005.12.14-2008.10.22-Italy album, reflecting that the earliest photo inside it was taken on 14 December 2005 and the latest on 22 October 2008. The Spain Journey folder becomes 2015.04.10-2015.04.10-Spain Journey — both dates are the same because all dated photos in that folder were taken on the same day. Files are renamed using their reverse-geocoded address and day. The ten Arezzo photos all share the same address and date (Italia-Arezzo-2008.10.22), so photo-cli appends a two-digit suffix (-10 through -19) to keep their names equal length across the group. Photos without GPS coordinates (IMG_2371.jpg) or without any EXIF date (IMG_5397.jpg) are kept under their original names and placed inside the renamed folder alongside the other files.
Folder date range prefixes are ideal for travel albums where you want to see the shoot dates at a glance in the folder listing, without having to open the folder or check individual file names. The prefix format yyyy.MM.dd-yyyy.MM.dd sorts correctly in any file manager that sorts alphabetically.