Add(7) GPS metadata info upto 6 decimal places without JS

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Add(7) GPS metadata info upto 6 decimal places without JS

Postby SomeOrdinaryIndian » Fri Sep 05, 2025 6:47 am

Hello

Trying to add the System Gsp tag to my photo filenames adn wondering if its possoible to add the Decimal Coordinates upto 6 decimal palces witholut Javascript?

If not then I'll just be glad to get help with a Javascrtipt code from anyone to achieve this

Also, how to replace/remove the original filenames(IMG_0696 etc.,) with whatever I'm trying to repalce the names with?

Image
SomeOrdinaryIndian
 
Posts: 3
Joined: Fri Sep 05, 2025 6:36 am

Re: Add(7) GPS metadata info upto 6 decimal places without JS

Postby SomeOrdinaryIndian » Fri Sep 05, 2025 6:48 am

Sorry for low quality image. Here's full linked image file

Image
SomeOrdinaryIndian
 
Posts: 3
Joined: Fri Sep 05, 2025 6:36 am

Re: Add(7) GPS metadata info upto 6 decimal places without JS

Postby Admin » Fri Sep 05, 2025 11:21 am

How does the gps information appear in the file properties?
Admin
Site Admin
 
Posts: 3065
Joined: Tue Mar 08, 2005 8:39 pm

Re: Add(7) GPS metadata info upto 6 decimal places without JS

Postby SomeOrdinaryIndian » Sat Sep 06, 2025 7:34 am

Admin wrote:How does the gps information appear in the file properties?


Sorry for ther late reply

The below image is of a photo file properties. its recorded at upto 15 decimal places in this case.

Image

This is the properties of a .mov video file and iOS recorded the longitude to 4 decimals in this file. Sometimes its 4 decimal to both lat an long values. its lower decimal values for the video files AFAIK.

Image
SomeOrdinaryIndian
 
Posts: 3
Joined: Fri Sep 05, 2025 6:36 am

Re: Add(7) GPS metadata info upto 6 decimal places without JS

Postby 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.
Admin
Site Admin
 
Posts: 3065
Joined: Tue Mar 08, 2005 8:39 pm


Return to BRU Support