Page 1 of 1
-strip on certain images loses rotation information
Posted: 2014-03-17T15:35:33-07:00
by pyramation
I've noticed that some images lose rotation information when I use -strip. Is there a way to rotate an image based on it's information, then strip it after?
For example, this causes the image to be the wrong orientation:
Code: Select all
convert DSC_0551.JPG -strip stripped.jpg
Re: -strip on certain images loses rotation information
Posted: 2014-03-17T15:37:54-07:00
by pyramation
Also, I just looked at the exif data, and found this:
Code: Select all
identify -format "%[EXIF:*]" DSC_0551.JPG
which gave this info:
Re: -strip on certain images loses rotation information
Posted: 2014-03-17T15:42:46-07:00
by dlemstra
You can do the following:
Code: Select all
convert DSC_0551.JPG -auto-orient -strip stripped.jpg
Re: -strip on certain images loses rotation information
Posted: 2014-03-17T15:53:39-07:00
by pyramation
Thanks! I actually had notes in my codebase saying not to us -auto-orient, but looks like it was due to a bug that was fixed (
viewtopic.php?f=3&t=24749)
That did the trick!