Skip to content

How to get image Exif detail to updating orientation detail?

kls dngr

Asked Sep 7, 2015, 1:22 AM EDT1 answer
Share
LinkedInX
I upload image and it automatically change its upside down. So, how to check image orientation before saving image by getting its Exif details.?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    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
    0