by Admin » Sun Sep 07, 2025 8:30 am
Try this:
Notes / prerequisites
Make sure EXIF tags are available (in versions < 4.1.0.0 enable Renaming -> Extract EXIF data; in 4.1.0.0+ EXIF tags work automatically).
Not all images have GPS EXIF. If a file lacks GPS the tag will be empty.
How to format latitude/longitude to 6 decimal places
Use the EXIF GPS tags with the numeric formatter {fixed:6}. Examples you can paste into Add (7) Prefix / Suffix / Insert (or Replace/With):
Just latitude:
<(exif:GeoLocation.Latitude){fixed:6}>
Latitude and longitude separated by comma:
<(exif:GeoLocation.Latitude){fixed:6}>,<(exif:GeoLocation.Longitude){fixed:6}>
Add them only when present and include a separator only if both exist (put separator inside the same angle brackets so it disappears if empty):
<(exif:GeoLocation.Latitude){fixed:6} - (exif:GeoLocation.Longitude){fixed:6}>
If the GPS values are stored as text rather than numeric (rare), prefix with # to force numeric parsing, e.g.:
<(#exif:GeoLocation.Latitude){fixed:6}>
Examples of final filenames
Prefixing coords:
<(exif:GeoLocation.Latitude){fixed:6}>,<(exif:GeoLocation.Longitude){fixed:6}>_<name>
-> 43.468243,11.880172_Holiday.jpg
Testing
Put the tag in Add (7) -> Prefix (or Suffix/Insert) and verify the New Name preview for files with GPS.
Adjust order (Special -> Order) if you need formatting to run before/after other steps.
Decimal separator note
The {fixed:6} formatter produces a fixed-point number. The decimal separator may follow your system locale. If you need advanced tweaks (for example: force dot regardless of locale or conditional construction beyond what tags/formatters do), Javascript can do that. But for plain 6-decimal coords the tag+{fixed:6} is the simplest solution.