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.
-auto-orient is working incorrectly with thumbnails
Re: -auto-orient is working incorrectly with thumbnails
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
Link to the image: http://jump.fm/KVSOU
Version: ImageMagick 6.4.9-7 2009-03-03 Q16 OpenMP http://www.imagemagick.org
- 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
-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
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/
https://imagemagick.org/Usage/
- 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
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/
https://imagemagick.org/Usage/
Re: -auto-orient is working incorrectly with thumbnails
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.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.