I am trying to use MFMailComposeViewController to email an image as attachment.
Everything else is fine, except that the correct image orientation is not being read from the exif data. An image which should be in portrait orientation gets shown/mailed in landscape right orientation, which is the actual orientation of an image captured in iOS.
I checked the mime type, I am using 'image/jpeg' for a jpeg image. Which is correct it seems. I tried dumping the image data which I am attaching to the mail just before sending, the dumped image gets shown correctly in mac. If I try opening the image in received mail, it shows the correct orientation.
What could be going wrong?