Sunday, 12 June 2011

How to remove exif tags using Ubuntu

Exif data provides a interesting insight to how and possibly where a photo was taken, however sometimes you may want to remove the data embedded in your jpg files.

I will be using two lightweight console programs:

exif - Displays the exif data using a console

mogrify - Amongst other things, strips exif data (part of imagemagick package)

Shown below is a screen dump of exif in action.  The command to show machine readable exif information is 'exif -m picture.jpg'


Now use mogrify to strip the tags 'mogrify -strip *.jpg'
Note:  morgrify will overwrite/append all files, which is what we want most of the time.

A retest with exif, shows the tags are gone!



WindyCityTech Blogger
windywindycitytech wordpress

No comments:

Post a Comment