Respecting EXIF orientation when displaying iPhone photos on the web

Posted by GingerBreadMane on Stack Overflow See other posts from Stack Overflow or by GingerBreadMane
Published on 2010-03-16T22:38:17Z Indexed on 2010/03/16 22:41 UTC
Read the original article Hit count: 334

Filed under:
|
|
|
|

I am developing an iPhone camera app that uploads an image to Amazon S3 and that image is displayed on a website. When the iPhone takes a picture, it always saves the photo in an upright orientation, while the orientation used to correctly view the photo is saved in the image's EXIF data. So if I take a photo with the iPhone and open it in FireFox without processing the EXIF data, the image could be sideways or upside down.

My problem is that I don't know how to display the photo in it's correct orientation on the website. My current solution is to rotate the photo in the iPhone app, but I'd rather not do that. Is there anyway to respect the EXIF data when displaying on the web without pre-processing the image?

© Stack Overflow or respective owner

Related posts about php

Related posts about html