Page 1 of 1

Issue with -auto-orient option

Posted: 2015-06-01T03:50:35-07:00
by vikalp.singh
auto-orient option in some images is resulting in incorrect orientations. Is anyone else facing the same issue?
I am using the latest version of ImageMagick (6.9.1-4)[ Built it from source]
Issue can be reproduced using the provided image and run

Code: Select all

convert <Image> -auto-orient <image_new_name>
Image - https://drive.google.com/file/d/0BxXuMp ... sp=sharing

Re: Issue with -auto-orient option

Posted: 2015-06-01T04:13:14-07:00
by snibgo
The file has a meta-data orientation setting of "8", which means it needs to be rotated 90 degrees anti-clockwise.

Exiftool says "XMP-tiff:Orientation='Rotate 270 CW'".

IM does this correctly, for me.

If the camera was pointing straight down, it wouldn't correctly know which way was up.

Re: Issue with -auto-orient option

Posted: 2015-06-01T22:29:52-07:00
by vikalp.singh
Thanks a lot snibgo. I was only looking at the exif data (which shows orientation 1) , didn't realise that the file has XMP meta data attached too (with Rotate 270CW).
Thanks for the quick reply :)