Image is in jpeg
format and it's being shown as it should on my PC (I'm using Ubuntu), but once I try to upload it through <input type="file"...
while browsing for it, it displays as if it is rotated 90 degrees to the right.
I have part of code in my app which rotates images based on EXIF.getTag(this, 'Orientation')
parameter and it's returning number 8 for this case which implies that the image should be rotated to the left for 90 degrees, even it shouldn't (because it's already rotated on the PC).
What is causing this?
EDIT:
I found images containing exif parameter here. So once I download them using provided link, they are being properly shown on the PC, but are rotated when uploaded.