


View all the metadata for an image file by using the following command. These commands assume that you’ve already changed directories to where your images files are saved.Įxample 1. Once ExifTool has been installed, use some of the example commands below in order to remove Exif data. Ubuntu, Debian, and Linux Mint: $ sudo apt install libimage-exiftool-perlįedora, AlmaLinux, CentOS, and RHEL: $ sudo dnf install perl-Image-ExifToolĪrch Linux and Manjaro: $ sudo pacman -S perl-image-exiftool You can download this program from the ExifTool website or use the appropriate command below to install it with your system’s package manager. We’ll show you all the most useful commands below. There are a variety of options that can be used with the program, such as exporting a new version of the image (without the Exif data) or simply resaving the image in-place. This program can strip Exif metadata without recompressing the image, so there’s no loss in quality. There are quite a few tools available that can remove Exif data, but one we’ve found to work very well is ExifTool.

In this guide, we’ll see how to remove EXIF data from JPG, JPEG, PNG, and other image files from the Linux command line. While this is usually a desirable feature, it can also be a privacy concern if the images are going to be shared or published online. Images that contain Exif metadata may reveal when and where a photo was taken and with what device, among other things.
