Page 1 of 1

Auto orient and remove other exifs

Posted: 2015-01-12T06:59:09-07:00
by seban
Hi,
I am trying to auto orient image and remove unnecessary exif informations. Basically I just want to leave "Orientation".
I am calling

Code: Select all

mogrify -auto-orient -strip image.jpg
But this clears all exif data. My question is: is there any option to remove all exif data except "Orientation"?

Re: Auto orient and remove other exifs

Posted: 2015-01-12T07:15:46-07:00
by snibgo
What is the point of keeping "Orientation" after you have auto-oriented it?

For exif processing, such as removing some exif data but keeping other, exiftool is usually more capable than IM.

Re: Auto orient and remove other exifs

Posted: 2019-07-16T13:26:09-07:00
by davidhartman00
You can try using

Code: Select all

+profile EXIF
to remove just the EXIF data. Or the reverse would be to save the EXIF data and remove everything else. They give an example of this here: https://imagemagick.org/script/command- ... hp#profile