Re: Strange behaviour with some cached images
Reply #1 – April 06, 2018, 10:08:57 am
That is the age old problem of how the camera was held during the shot. The image EXIF data shows that image as rotated 90, so that is what you see here and on the tinypic site. If the image is uploaded to ElkArte, then it would get processed such that its orientation is corrected, but in this case its a remote image displayed inside of a IMG tag, so it shows it just as the picture was taken. CSS4 has a new tag for image-orientation: from-image that will address this, but who knows when that will be released and supported. For now you could add some JavaScript to read the remote images EXIF data, and then apply a CSS transform to rotate it correctly for viewing inside of an IMG tag. On tinypic when you click to see the raw / original image, then its no longer in an IMG tag, its sent as a raw image. As such your OS/Browser combo displays the image and that combo is generally aware of the orientation EXIF flag and displays it correctly. TLDR: the IMG tag is currently stupid.
Re: Strange behaviour with some cached images
Reply #7 – April 06, 2018, 01:29:39 pm
Most image viewers are displaying correctly those images using exif data, and the user will not notice that the image is not rotated correctly. Here is how it is displayed by Xviewer without rotating the image. The same on mobile, even if the image is not rotated correctly the user will always see it correctly. I won't say it's the members fault, because they see fine those images on PC and smartphones.
Re: Strange behaviour with some cached images
Reply #9 – April 06, 2018, 02:28:31 pm
I think so yes .... since the proxy has to download the image, it could be run through the rotation detect and correct functions.