

Since you will lost the orientation metadata, maybe you'll want to mogrify -auto-orient image.jpg first.ĪFAIK the only difference with exiftool is that mogrify won't remove this metadata: strip strip the image of any profiles, comments or these PNG chunks: bKGD, cHRM, EXIF, gAMA, iCCP, iTXt, sRGB, tEXt, zCCP, zTXt, date. With imagemagick package installed you can do this ( not only for JPEGs): mogrify -strip *.jpg # Optionally: -verbose To read identify -verbose image.jpg | grep exif Instead of Exiftool, to handle Exif metadata (IPTC, XMP and ICC image metadata also) I found Imagemagick more useful and command easier to remember. Thumbnail Image : (Binary data 10941 bytes, use -b option to extract)įile Modification Date/Time : 2013:02:24 12:21:39-08:00 To erase photo metadata: exiftool -all= /tmp/my_photo.jpgįile Modification Date/Time : 2013:02:24 12:08:10-08:00Įxif Byte Order : Big-endian (Motorola, MM)Įncoding Process : Baseline DCT, Huffman coding To read photo metadata: exiftool /tmp/my_photo.jpg Install exiftool: sudo apt-get install libimage-exiftool-perl
