ExifTool Forum

ExifTool => Newbies => Topic started by: Velo on December 16, 2012, 08:23:27 AM

Title: Geotagging - removing invalid entries
Post by: Velo on December 16, 2012, 08:23:27 AM
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
Title: Re: Geotagging - removing invalid entries
Post by: Phil Harvey on December 16, 2012, 08:45:14 AM
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
Title: Re: Geotagging - removing invalid entries
Post by: Velo on December 16, 2012, 09:24:57 AM
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