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.
Compare the metadata present on old and cleaned images using ImageMagick:
identify -verbose myphoto.jpg identify -verbose myphoto.jpg_original
Not all headers can be removed, but it usually works.
apt install libimage-exiftool-perl
brew install exiftool
- Windows installer
pkg install exiftool