convert forces Orientation TopLeft to Undefined 65537
Posted: 2012-04-06T02:17:13-07:00
Version: ImageMagick 6.7.6-4 2012-04-04 Q16 (running on Windows XP)
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
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
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