how to delete all EXIF tags except those from specified list

Started by vladak, October 24, 2015, 07:23:33 AM

Previous topic - Next topic

vladak

I'd like to delete all EXIF data from image but I'd like to preserve Orientation. I tried this:

  exiftool -exif:all= --exif:Orientation file.jpg

however it does not seem to be working - all exif tags are deleted including Orientation.

I am using exiftool 10.02 on OS X.

ryerman

Try this:
exiftool -exif:all= -TagsFromFile @ -exif:Orientation file.jpg
Windows 10 Home 64 bit, Exiftool v12.61