开发者

iPhone Camera pictures from UIImagePickerController are sideways

开发者 https://www.devze.com 2023-01-18 10:08 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消