Sunday, August 26, 2018

Scrub GPS location from JPEG EXIF data

I tried two linux tools, exiv2 and exiftool. exiftool seems to be better.

exiv2

View full exif data with this (the default view only gives you a summary):
exiv2 -pa myimg.jpg 
Delete all exif data with this:
exiv2 rm myimg.jpg 
There doesn't appear to be a way to just delete the GPS info with exiv2.

exiftool

Install:
sudo apt-get install libimage-exiftool-perl
View exif data:
exiftool myimg.jpg
Delete just GPS data with this:
exiftool -gps:all= myimg.jpg