Geotagging - removing invalid entries

Started by Velo, December 16, 2012, 08:23:27 AM

Previous topic - Next topic

Velo

Hi,

my camera has built-in gps. When a position cannot be established, the camera writes 0-0-0 coordinates into the exif data.

I would like to remove geotags for all pictures with zero coordinates. How can I do that?

Offtopic: How can exiftool renew preview pictures?

Cheers
Andreas

Phil Harvey

Hi Andreas,

You could do something like this:

exiftool -gps:all= -if "$gpslatitude# == 0" DIR

Where DIR is the name of a directory containing the images.  (Note: Use double quotes as above in Windows, or single quotes in Mac/Linux.)

ExifTool can write preview images but it can't generate them.  (ExifTool doesn't do any image manipulation.)  You need to use another utility to generate the preview.

- 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 ($).

Velo

Thanks a lot!

I ended up with -overwrite_original -gpsLatitude= -GPSLongitude= -GPSVersionID= -if "$gpslatitude# == 0" *.jpg, so height and compass information are preserved

Cheers
Andreas