iPhone Camera pictures from UIImagePickerController are sideways
My application supports taking pictures from iPhone in portrait mode and upload to the server.
Howev开发者_JAVA百科er, the pictures taken are appearing in sideways once uploaded to the server.
Please help!
-KC
Keep in mind that the image has an associated imageOrientation
property that will determine the correct orientation to display the image.
Images captured used AV Foundation (at least using AVCapture, which I'm using) are taken in landscape mode, so you have to rotate them clockwise before sending to the server.
精彩评论