简体   繁体   中英

iOS Facebook SDK--Uploaded Photos Sideways

Whenever I make the me/photos call to the Facebook server in my iOS app, the image uploads but is consistently in the wrong orientation. I'm using AVCapture to take photos in the app, and any saved photos are in the correct orientation.

How can I get the uploaded image to be in the correct orientation?

You will need to translate the image based on its EXIF code. See the answer here for working code to translate the image: iOS UIImagePickerController result image orientation after upload

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM