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.Documentation Index
Fetch the complete documentation index at: https://photocli.com/llms.txt
Use this file to discover all available pages before exploring further.
Command
Key arguments
| Argument | Value | What it does |
|---|---|---|
--process-type | SubFoldersPreserveFolderHierarchy | Keeps the original subfolder structure in the output. |
--naming-style | AddressDateTimeWithSeconds | Names each file as {address}-{yyyy.MM.dd_HH.mm.ss}.ext, with the address placed before the timestamp. |
--reverse-geocode | OpenStreetMapFoundation | Uses the OpenStreetMap Nominatim API to resolve GPS coordinates into a human-readable address. |
--openstreetmap-properties | country city town suburb | Selects which OpenStreetMap fields to include in the address string. |
--number-style | AllNamesAreSameLength | Appends equal-length numeric suffixes to files that would otherwise share an identical name. |
--no-taken-date | InSubFolder | Photos with no EXIF taken date are copied into a no-photo-taken-date subfolder rather than being skipped or mixed in. |
--no-coordinate | InSubFolder | Photos with a taken date but no GPS coordinate are copied into a no-address subfolder. |
Before and after
Before (photos/):
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.