I am investigating an issue on a website and when displaying a picture in my browser it appears rotated and not the way it should be as it is vertical. See http://www.terraporta.cl/Fotos/101/XProp_513_203113038559.jpg I downloaded the original and it is indeed vertical
Why then the browser rotates it ?
Most camera sensors are landscape and I would guess the photo was taken when the camera was tilted through 90deg.
Some software/browsers are helpful and read the orientation data from the image EXIF data and rotate it and others do not.
I recommend opening the photo in a image editor - rotating if required and then saving. Hopefully this will sort your problem.
2 Likes
According to Inspect Element in FF:-
img { image-orientation: from-image; }
Disabling that or changing it to auto
puts it right.
/must be something in the exif data, but seems strange as it is clearly portrait.
1 Like
You were right guys ! Thanks ! I altered the style to override it and it worked !
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.