Description
I have an image that I took using Iphone in portrait mode. When the iphone stores this image, it stores an Exif Orientation tag with value 6 on the image. This means that the image needs to be rotate left 90deg to get back the original.
Now, I do the following:
i = Image.open('image.jpg')
i.show()
expecting to see the original image rotated 90, i.e the way the iphone saved it. but instead I am getting a corrected image.
If I save the image as a different file, and look at it using "eog" which is the image viewer on my ubuntu box, I again get the "corrected" image. If I use "eog" to look at the original image, I see an image rotated 90deg ( as I expect ).
why is Image.open () rotating the image ?
My use case, is that I have an image processing application, and I need to correct the source image orientation depending on the exif tag.