Android portrait images turned wrong way


(Jay Pfaffman) #1

This image should be turned 90 degrees clockwise:

This is Chrome on a Galaxy S7. I clicked the “upload” link in the composer and selected the camera app to snap the picture.

It also seems to be cropped strangely in the thumbnail presented here.


(Eli the Bearded) #2

I haven’t examined the code path through Discourse, nor do I use Chrome much on my Android device. But I have a personal uploader app I use in Firefox with my Android device, and I don’t have to do anything special in my app for images to show up correctly. I believe the camera app senses the position of the phone and saves them the “right” way. Although it is possible that it is the browser examining the Exif and rotating for me.

Either way, I strongly suspect your image doesn’t have the correct Exif at the time of camera app save.


(Jay Pfaffman) #3

That’s what I’d think too, except I’m pretty sure that it worked as expected before, and it was only after I noticed someone else’s images turned sideways that I tested it for myself.


(Jeff Atwood) #4

This is a duplicate, so closing it.


(Jeff Atwood) #5