If different viewers display the same image with different rotation angles, you might be right. The most common reason would be TIFF or EXIF orientation tags. The following page contains a good discussion of these tags: http://support.leadtools.com/SupportPortal/CS/forums/42411/showpost.aspx The following document contains the Exif specs, including the Orientation tag (274 or 112.H): http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf To detect this tag and edit its value, you can either parse the EXIF header based on the specs or use an imaging toolkit. If you want to parse the image file header yourself, make sure to account for differences between the different formats like EXIF, TIFF, JPEG, etc.
Shashiv Banerjee2 pointsPosted Sep 17, 2015, 9:39 AM EDT
http://support.leadtools.com/SupportPortal/CS/forums/42411/showpost.aspx
The following document contains the Exif specs, including the Orientation tag (274 or 112.H):
http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf
To detect this tag and edit its value, you can either parse the EXIF header based on the specs or use an imaging toolkit. If you want to parse the image file header yourself, make sure to account for differences between the different formats like EXIF, TIFF, JPEG, etc.