Issue with -auto-orient option

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
vikalp.singh
Posts: 2
Joined: 2015-06-01T03:39:52-07:00
Authentication code: 6789

Issue with -auto-orient option

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Issue with -auto-orient option

Post 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.
snibgo's IM pages: im.snibgo.com
vikalp.singh
Posts: 2
Joined: 2015-06-01T03:39:52-07:00
Authentication code: 6789

Re: Issue with -auto-orient option

Post 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 :)
Post Reply