DRDD2016 / app

0 stars 1 forks source link

Photos uploaded on iphone displaying upside down on android #380

Open rickardinho opened 8 years ago

rickardinho commented 8 years ago

When photos are uploaded to the stream using iphone 5s they display okay on iphone 5s (first screenshot) but are displaying upside down when displaying on android (second screenshot). This appears to be all photos in the stream. image1 1 screenshot_20160630-231701

sohilpandya commented 8 years ago

Hi @rickardinho, We were aware of this issue before, I think we mentioned it to you two meetings ago.

This issue is related specifically to Chrome Browsers, Safari knows which way around to display the photo, whereas Chrome sometimes displays correctly and other times has its own way.

We have tried to find a solution for this issue over the last few weeks, but sadly not had a breakthrough around different browser behaviour. As a consolation, something like this won't be an issue on a native app.

Attaching an article here, which goes through the issue in details and shows how even large corporations struggle with the issue. http://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/

rickardinho commented 8 years ago

This is a pretty old issue... do we know what type of photo triggers it.. i.e. is it a photo that is taken upside down and then re-oriented by safari, but not chrome? Would rotating it in a picture editor prior to uploading sort it, or just flip the problem from android to iphone? I haven't seen this issue in any other sites or apps.

sohilpandya commented 8 years ago

@rickardinho @Dameodeare

Landscape photos: top of the phone on the left hand side, it displays photos correctly, top of the phone on the right hand side photos taken with the top of the phone pointing toward the left hand side

Portrait photos: all photos get rotated 90 degrees anti-clockwise

It turns out this is an android vs iphone thing, rather than a chrome vs safari thing. I tried this out on chrome on my iphone and everything was rotated correctly.

Its true that this is a pretty old issue, but we've had it in the back of our minds since we first noticed it, and up until now we've not found a solution.