Read & Remove EXIF Data From the Command Line

Most digital cameras will insert metadata into images. This metadata is stored using the exchangeable image file format (EXIF) and can contain camera specifications, exposure settings, thumbnails, GPS coordinates and more. This article outlines some Linux command line tools you can use for reading, editing and removing EXIF metadata from images.

Reading and Editing EXIF Metadata with ExifTool

ExifTool is powerful a Perl program that can be used to read and edit EXIF metadata in images. To install ExifTool as /usr/bin/exiftool on Fedora, install the perl-Image-ExifTool package:

su -c 'yum install perl-Image-ExifTool'

Alternatively, you can use CPAN to install ExifTool in /usr/local/bin/exiftool.

su -c "perl -MCPAN -e'install Image::ExifTool'"

After installation, you will have the exiftool command available in /usr/bin or /usr/local/bin. To view the EXIF metadata in an image, just past the image as an argument to exiftool.

exiftool dsc_0790.jpg

Here is a snippet of the output from the above command:

ExifTool Version Number : 7.60
File Name : dsc_0790.jpg
Directory : .
File Size : 4.4 MB
File Modification Date/Time : 2008:07:16 09:45:20-07:00
File Type : JPEG
MIME Type : image/jpeg
Exif Byte Order : Big-endian (Motorola, MM)
Make : NIKON CORPORATION
Camera Model Name : NIKON D200
Orientation : Horizontal (normal)
X Resolution : 300
Y Resolution : 300
Resolution Unit : inches
Software : Bibble 4.10a
Modify Date : 2007:06:23 22:00:14
Exposure Time : 1/40
F Number : 2.0
Exposure Program : Aperture-priority AE
ISO : 100
.
.
.

ExifTool has many options for editing and removing EXIF metadata in images. To see the available options, use the --help switch or read the ExifTool documentation.

exiftool --help

Reading EXIF Metadata with Jhead

Jhead is a command line tool for displaying EXIF data embedded in JPEG images. On Fedora, use Yum to install Jhead:

su -c 'yum install jhead'

Now, use /usr/bin/jhead to read EXIF metadata:

jhead dsc_0790.jpg

Here is an example of the output produced by the jhead command:

File name : dsc_0790.jpg
File size : 4654488 bytes
File date : 2008:07:16 09:45:20
Camera make : NIKON CORPORATION
Camera model : NIKON D200
Date/Time : 2007:06:23 22:00:14
Resolution : 3880 x 2608
Flash used : No
Focal length : 50.0mm (35mm equivalent: 75mm)
Exposure time: 0.025 s (1/40)
Aperture : f/2.0
ISO equiv. : 100
Exposure bias: 1.00
Whitebalance : Auto
Exposure : aperture priority (semi-auto)
GPS Latitude : ? ?
GPS Longitude: ? ?
======= IPTC data: =======
(C)Flag : 0
DateCreated : 20070623
Time Created : 220014
Record vers. : 4

Removing EXIF Metadata with ImageMagick

If you need to strip the EXIF metadata from images, use ImageMagick's mogrify command. To install ImageMagick on Fedora, use Yum:

su -c 'yum install ImageMagick'

After ImageMagick is installed, you will have /usr/bin/mogrify available. The mogrify command can be used to strip Exif data from images.

mogrify -strip imagename.jpg

If you need to process a large number of files, use find and xargs:

find ./folder_of_images -name '*.jpg' | xargs mogrify -strip


Comments

are lower than the real

are lower than the real one.
Tom open a GUCCI Handbags store, but he usually sale the GUCCI Replica Handbags, all the replica GUCCI Handbags are 80% off on sale, so many fashion women like to buying fake GUCCI Handbags in there.
Chanel Handbags are the famous world brand, so the replica Chanel Handbags shops are open all over the world, you never tell out the different from the chanel bags.
Macdonad love the Prada Handbags, she offen join the big exhibitions through the cities, but one day she buy one replica Prada Handbags, and go to a big party, all the women in there can not recognise this fake Prada Handbags, so in the end, when she tell them about the Prada replica Handbags, the whole party shocked.
Fashion Miu Miu Handbgs are very popular among the young women, because the high price of Miu Miu replica Handbgs, so many of them go to the replica Miu Miu Handbgs stores and buy the fake Miu Miu Handbgs as a lowest price.

Louis Vuttion Replica Epi

Louis Vuttion Replica Epi Leather Montaigne Bag Purple M59302
Louis Vuttion Replica Epi Leather Musette Bagatelle Black M40252
Louis Vuttion Replica Epi Leather Pochette Accessoires Black M52982
Louis Vuttion Replica Epi Leather Pochette Clutch BLue M52942
Louis Vuttion Replica Epi Leather Pochette Clutch Yellow M52942
Louis Vuttion Replica Epi Leather Pochette Homme Black M52612
Louis Vuttion Replica Epi Leather Sarah Wallet Red Rubis M6374M
Louis Vuttion Replica Epi Leather Segur Pouch Noir Orange M58882
Louis Vuttion Replica Epi Leather Segur Red M58872
Louis Vuttion Replica Epi Leather Shopping Tote Bag Orange M52002
Louis Vuttion Replica Epi Leather Shopping Tote Bag Yellow M52012
Louis Vuttion Replica Epi Leather Shoulder Bag Orange M52022
Louis Vuttion Replica Epi Leather Shoulder Bag Yellow M58939
Louis Vuttion Replica Epi Leather Soufflot Handbag Red PM M52222
Louis Vuttion Replica Epi Leather Speedy 30 Blue M41526
Louis Vuttion Replica Epi Leather Top Handle Bag Black M5904
Louis Vuttion Replica Epi Leather Vivienne Long Orange M59112
Louis Vuttion Replica Epi Leather Wallet Black LVE001
Jimmy Choo Simone Brown Leather Shoulder
Fendi Handbag B-Bag Medium Leopard Print Bag
Fendi Handbag B-Bag Medium Pony Skin Zebra Print Bag
Fendi Handbag B-Bag Medium Zucca Pony Skin Print Bag
FENDI Handbag B. Fendi Patent Leather Medium White
FENDI Handbag B. Fendi Patent Trim Continental Wallet Black Black
FENDI Handbag B. Fendi Patent Trim Continental Wallet Bone Black
FENDI Handbag B. Fendi Small Shoulder Bag Black Black
FENDI Handbag B. Fendi Small Shoulder Bag Bone Black
FENDI Handbag B. Fendi Small Shoulder Bag Red
Fendi Handbag B.Bag Patent Trim Medium Black

tiffany jewelry Choose, buy

tiffany jewelry
Choose, buy and shop for on sale tiffany jewelry including Tiffany & Co Silver Necklace, Pendants, Bangles, Bracelets, Earrings, Rings and Accessories.
tiffany co
Tiffany Jewellery offering bangle Jewellery, bracelet jewelry, eardrop jewelry, necklace jewelry, ring jewelry, finger ring jewelry and earring jewelry
tiffany
tiffany and co
links of london
links london
Tiffany Style Silver Jewelry: Rings, Earrings, Necklaces, Bracelets and more Tiffany Jewellery at low prices.

.replicahandbagsone.com/prada

.replicahandbagsone.com/prada-handbags-c-91.html">Prada Handbags to join the big party can show women's fashion, so even the poor people like to buy replica Prada Handbags, so when you wAs everyone knows that the Chanel Handbags are popular in the whole world, sell replica Chanel Handbags can get more profit, many people like to sell
Taking the
fake Prada Handbags, do you feel have a Prada replica Handbags is a cool action?
The best GUCC Fashion women love Miu Miu Handbgs, but the price is to high, so many ladies choose Miu Miu replica Handbgs, in the replica Miu Miu Handbgs shops, you will get the popular fake Miu Miu Handbgs that you love.

Sometimes when we are

Sometimes when we are working for the webthesurfi rugs webdesign this tool was very useful to edit the pictures. Thanks for sharing it.

Our team tried this code out

Our team tried this code out and works fine. The fit very well at Webthesurfi Rugs Webdesign newest technology.

master degree

they have similarity with

they have similarity with linux commands..manual installation by typing commands in terminal. great!

I already tried this code

I already tried this code and its working. Thanks for this resources.

Look complicated to me.

Look complicated to me. hahaha
I use adobe lightroom to do it, you can batch too.. FAST and EASY.

Very interesting, i like

Very interesting, i like this website.

Thanks for for pointing out

Thanks for for pointing out exiftool!
I'm going to use this for a large project, 24.000 images. No way to add image meta data by hand.
Glad! Christine (aka Stinie)

Hi! Sometimes you don't have

Hi! Sometimes you don't have the possibility to use Linux for removing exif data from image files. An alternative for these moments is an online tool. You can find it here: http://www.exif-remove.de .