I've noticed that for images without EXIF orientation information on the main image, but with EXIF orientation on the embeded thumbnail, "identify" picks up the thumbnail's orientation and returns it as if it was the orientation for the main image.
I've tested this on ImageMagick 6.7.9-7 2012-09-24 Q16 http on linux and ImageMagick 6.7.5-0 2012-01-26 Q16 http on windows.
I haven't got a non-copyrighted image to show as an example of this, and can't reproduce a problem image myself, but I have included some output from Identify and from PHP's read_exif_data() as comparison below.
If anyone can replicate this and/or has any suggestions to get identify to give the correct results I'd be very grateful.
Thanks,
James
Output from Identify
Code: Select all
[Image] => 57586.jpg
[Format] => JPEG (Joint Photographic Experts Group JFIF format)
[Class] => DirectClass
[Geometry] => 2736x3648+0+0
....
[Compression] => JPEG
[Quality] => 99
[Orientation] => RightTop
....
Code: Select all
[FileName] => 57586.jpg
[FileDateTime] => 1348494016
[FileSize] => 3875894
[FileType] => 2
[MimeType] => image/jpeg
[SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, EXIF, MAKERNOTE
....
[THUMBNAIL] => Array
(
[Compression] => 6
[Orientation] => 6
[XResolution] => 72/1
[YResolution] => 72/1
[ResolutionUnit] => 2
[JPEGInterchangeFormat] => 3950
[JPEGInterchangeFormatLength] => 5669
[YCbCrPositioning] => 2
)
......
(no other orientation information)