function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Christy Braaten 20Christy Braaten 20 

Images Uploaded in iOS via <Apex:InputFile> are sideways or upside down

So we have an application used on mobile where we include an <Apex:inputFile> tag and then upload the images to an attachment record.  On iOS if you take a picture in the portrait position (home button down) the image is uploaded to Salesforce sideways.  I did research on this and it appears to have to do with the way that Apple stores images using an EXIF tag to store the orientation of the image:
http://iphonephotographyschool.com/iphone-photos-upside-down/
There is debate as to whose fault it is but I am reading it as Salesforce needs to look at these EXIF tags when uploading an image so that it uploads it in the correct orientation.  Has anybody else run into this and has a creative solution? 
Matthias GuentherMatthias Guenther
I am seeing the same issue, it also happens when you just upload an image to an attachment. I think the <apex:image> tag should look at the orientation when rendering an image.