convert forces Orientation TopLeft to Undefined 65537

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
Jochen S.

convert forces Orientation TopLeft to Undefined 65537

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: convert forces Orientation TopLeft to Undefined 65537

Post by magick »

We can reproduce the problem you reported. We'll have a patch within a day or two. Thanks.
Post Reply