Sometimes when I put photos online I want to ensure that embedded metadata such as location, is removed.

On Linux, exiftool is an easy way to strip some, or all, metadata.

First things first install exiftool, on Ubuntu it’s a simple apt-get away:

$ sudo apt-get install libimage-exiftool-perl

Once you’ve installed the application, navigate to the folder where your images are. To remove all data from all images, run the following command:

exiftool -all= *.jpg

When you run exiftool it will create an untouched copy of your file(s) with _original appended to the file name.

There are variations to just strip some metadata from an image and you can run the command against individual files in additon to bulk actions.