Strip geotag location from photos

less than 1 minute read

Most EXIF and IPTC headers will be stripped from an image by:

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.

Check

Compare the metadata present on old and cleaned images using ImageMagick:

identify -verbose myphoto.jpg

identify -verbose myphoto.jpg_original

Caveats

Not all headers can be removed, but it usually works.

Install

  • Linux: apt install libimage-exiftool-perl
  • MacOS: brew install exiftool
  • Windows installer
  • BSD: pkg install exiftool

Leave a Comment