Page 1 of 1

convert forces Orientation TopLeft to Undefined 65537

Posted: 2012-04-06T02:17:13-07:00
by Jochen S.
Version: ImageMagick 6.7.6-4 2012-04-04 Q16 (running on Windows XP)

Code: Select all

C:\>identify -verbose original.jpg | findstr "Orientation"
  Orientation: TopLeft
    exif:Orientation: 1

C:\>convert original.jpg broken.jpg

C:\>identify -verbose broken.jpg | findstr "Orientation"
  Orientation: undefined
    exif:Orientation: 65537
It seems like convert is setting the orientation to 65537 on some of my images. This happens not to all but to several images. Most of these images are portrait mode, but not all of them. Those portrait images have been lossless rotated with either IrfanView or XnView, and their orientation tag seems to be ok. The images showing this bug reproduce it every time, no matter what parameters I handle to convert.

I'm no exif-expert so maybe something with these images is wrong. But neither ImageMagick nor jhead nor IrfanView nor XnView complain about the original images. I just discovered it when jhead complained about "Nonfatal Error : 'broken.jpg' Undefined rotation value 65537 in Exif" on some images during a batch thumbnail creation of all my images.

Testfile: http://www.files.to/get/281201/92q6m8wejo
(resized and saved as... (keep exif) using IrfanView).

Maybe someone could have a look into that. Thank you very much,
Jochen

Re: convert forces Orientation TopLeft to Undefined 65537

Posted: 2012-04-06T03:36:11-07:00
by magick
We can reproduce the problem you reported. We'll have a patch within a day or two. Thanks.