Strip geotag location from photos
Strip most EXIF and IPTC headers from image:
exiftool -all= -photoshop:all= myphoto.jpg
A copy of the image _original
is kept.
The image is not recompressed so image quality is not affected.
Strip all files in directory:
exiftool -all= -photoshop:all= *
Compare the metadata present on old and cleaned images using ImageMagick:
magick identify -verbose myphoto.jpg
magick identify -verbose myphoto.jpg_original
Not all headers can be removed, but it usually works.
Install Exiftool:
- Linux:
apt install libimage-exiftool-perl
- macOS:
brew install exiftool
- Windows installer