Geotagging only images without geo tags

Started by feklee, January 07, 2024, 10:08:24 AM

Previous topic - Next topic

feklee

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

Phil Harvey

Hi Felix,

I do it like this:

exiftool -if "not $gpslatitude" ...

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

Would the -wm (-writeMode) option work as well?  With cg it will only create new tags and not write existing tags.
-wm cg
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

feklee

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