Removing EXIF Data From Images and Photos in Linux

Most digital cameras and cell phone add EXIF metadata to the images.

EXIF metadata includes camera specifications, settings, location (GPS coordinates) and more.

If you’re worried about the privacy, you may want to anonymize your images and photos by removing all the EXIF metadata.

In this small guide, i’ll show how to read and then remove all EXIF metadata, using Linux command line utility, named ExifTool.

Install ExifTool

Under Ubuntu/Linux Mint/Dedian etc.:

$ sudo apt-get install libimage-exiftool-perl

Read EXIF Metadata from Image

Extract and view all EXIF metadata from an image or photo:

$ exiftool image.jpeg

Remove EXIF Metadata from Image

Remove all EXIF metadata from an image or photo:

$ exiftool -all= image.jpeg

Remove EXIF Data from Multiply Files

The next commands, also makes copies of the original files with the “_original” prefix.

Go into the directory with the images.

Execute the following command to remove all EXIF metadata from all images in the current directory:

$ exiftool -all= *

Remove EXIF metadata from images with “.jpeg” extensions only:

$ exiftool -all= *.jpeg