Chris Were's website

How to strip metadata from JPG and JPEG files

For this command, you'll require a program called exiftool. This tutorial is designed for use on the command line for most of the mainstream Linux distributions, not for Windows or Mac systems.

On Ubuntu-based distros:

sudo apt install libimage-exiftool-perl

On Arch-based distros:

sudo pacman -S perl-image-exiftool

Then use the following command to strip the metadata. INPUTFILE can include *.* or *.jpg as well as a specified file. The original, unmodified files will be renamed and not overwritten.

exiftool -all= INPUTFILE