AmigoJack wrote:Mike Ratledge wrote:the code needs to handle it on upload and not make it sever side
You can't mean what you said, because then the internet browser would alter the picture already.
phpBB can't force clients to do something - it can only perform server-side. But that would alter the picture, instead of just displaying it "correctly".
Mike Ratledge wrote:The browser does show the picture correctly - even if phpBB is showing it wrong, a when you touch it or click on it, the browser displays it correctly.
Do you mix up thumbnails with originals? Because then
phpBB's only lack is to add EXIF data for orientation to the thumbnail aswell.
Can you come up with examples? Also which internet browsers in which versions you experienced.
When a browser receives HTML if acts differently than it does when it receives a JPG file. The HTML sends context, CSS, etc and the browser doesn't try to fix an embedded image, it simply displays it.
On the other hand, if it gets a JPG file, it looks at the EXIF data to se which way is up in reality regardless of how it was stored.
For example, my Galaxy S3, S4 & S5 or her iPhone all show the graphic "wrong" when embedded in HTML, but correctly if JPG, and it doesn't matter what browser or graphics program is displaying it. They all show the files correctly raw, but as told to in HTML.
Same thing happens on my a Windows or Linux laptops, exactly the same. Again, Firefox, Internet Exploder, Chrome, native Android, iPhone browser - all show them exactly the same.