开发者

Rotate UIImage (a lot harder than it should be)

开发者 https://www.devze.com 2023-03-28 04:10 出处:网络
I have an app that uses the camera to take a picture and upload it to a server. The pro开发者_高级运维blem is once it gets to the server it is rotated. I know this is related to the EXIF meta data on

I have an app that uses the camera to take a picture and upload it to a server. The pro开发者_高级运维blem is once it gets to the server it is rotated. I know this is related to the EXIF meta data on the image that rotates it in the iPhone.

I've tried a few solutions found here at StackOverflow and I also tried putting the image into an imageView then drawing the image with UIImageJPEGRepresentation. Nothing seems to get the job done.

Has anyone here encountered this and found a good solution?

Thanks

0

精彩评论

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