ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: feklee on January 07, 2024, 10:08:24 AM

Title: Geotagging only images without geo tags
Post by: feklee on January 07, 2024, 10:08:24 AM
If I only geotag images that are in a raw format, then I should pretty much be fine. Recent JPEGs on my disk are generally shot with a phone, and they have a geotag already. So I avoid geotagging them.

Still, I'm curious: Is there a simple way to prevent geotags from being overwritten during geotagging?

How I want to geotag:

exiftool -geotag "GPS_tracks/*.gpx" -ext arw -ext nef -ext sr2 -ext dng DIR
- Felix
Title: Re: Geotagging only images without geo tags
Post by: Phil Harvey on January 07, 2024, 12:28:49 PM
Hi Felix,

I do it like this:

exiftool -if "not $gpslatitude" ...

- Phil
Title: Re: Geotagging only images without geo tags
Post by: StarGeek on January 07, 2024, 03:48:20 PM
Would the -wm (-writeMode) option (https://exiftool.org/exiftool_pod.html#wm-MODE--writeMode) work as well?  With cg it will only create new tags and not write existing tags.
-wm cg
Title: Re: Geotagging only images without geo tags
Post by: feklee on January 09, 2024, 04:08:06 PM
Quote from: Phil Harvey on January 07, 2024, 12:28:49 PMexiftool -if "not $gpslatitude" ...

Thanks, Phil, according to some tests that works well!

- Felix