-auto-orient is working incorrectly with thumbnails

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
finrist

-auto-orient is working incorrectly with thumbnails

Post by finrist »

We have images (jpg) whose thumbnail in the EXIF has "Orientation: 6" but the actual image has not. But when we convert it with "-auto-orient" it rotates the image 90 degrees even though only the thumbnail is said to be rotated.

The image looks good in every program I've tested, GIMP, Photoshop, Windows own, Mac OS X own, etc.
finrist

Re: -auto-orient is working incorrectly with thumbnails

Post by finrist »

More info:
Link to the image: http://jump.fm/KVSOU
Version: ImageMagick 6.4.9-7 2009-03-03 Q16 OpenMP http://www.imagemagick.org
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: -auto-orient is working incorrectly with thumbnails

Post by anthony »

-thumbnail will strip the profile containing photo orientation image that -auto-orient needs. -auto-orient can not work when it does not have information to work with!

You MUST apply -auto-orient BEFORE -thumbnail.

Alternative use -resize, then -auto-orient, then -strip
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: -auto-orient is working incorrectly with thumbnails

Post by anthony »

If you mean the thumbnails within JPEG. They are not currently handled by IM. More typically they are removed with either -strip or -thumbnail as part of processing, or re-created after processing.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
finrist

Re: -auto-orient is working incorrectly with thumbnails

Post by finrist »

anthony wrote:If you mean the thumbnails within JPEG. They are not currently handled by IM. More typically they are removed with either -strip or -thumbnail as part of processing, or re-created after processing.
Yes, it is the thumbnail within the JPEG that is not working. This thumbnail has "Orientation: 6" attached to it, but when i use -auto-orient IM applies this orientation to the real image, not only the thumbnail.
Post Reply