ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: GeoNomad on October 16, 2010, 04:10:13 AM

Title: Geotag but skip files that already contain GPS information
Post by: GeoNomad on October 16, 2010, 04:10:13 AM
Forgive me if I missed something obvious.

Is there a way to geotag a folder full of files, but to only modify the files which do not already have GPS information?

I don't want to overwrite more accurate information with less accurate information.

Thanks for a great tool!

TIA,
Peter


Title: Re: Geotag but skip files that already contain GPS information
Post by: Phil Harvey on October 16, 2010, 07:54:13 AM
Hi Peter,

You can use the -if option to test for the existence of any tag:

exiftool -if 'not $gpslatitude' ...

would process only files not containing GPSLatitude.  Note: Use double quotes instead of single quotes around the expression if you are on Windows.

- Phil
Title: Re: Geotag but skip files that already contain GPS information
Post by: GeoNomad on October 16, 2010, 05:06:01 PM
Quote from: Phil Harvey on October 16, 2010, 07:54:13 AM
You can use the -if option to test for the existence of any tag:

I had a feeling there was something obvious like that that I was missing.

I must have been absent the day -if was discussed....

;D


Thanks!