简体   繁体   English

iOS Facebook SDK-横向上传照片

[英]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. 每当我在我的iOS应用程序中将“ me/photos呼叫到Facebook服务器时,图像就会上传,但始终处于错误的方向。 I'm using AVCapture to take photos in the app, and any saved photos are in the correct orientation. 我正在使用AVCapture在应用程序中拍照,所有保存的照片的方向都正确。

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. 您将需要根据其EXIF代码转换图像。 See the answer here for working code to translate the image: iOS UIImagePickerController result image orientation after upload 请参见此处的答案以获取翻译图像的工作代码: iOS UIImagePickerController上传后结果图像方向

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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