[英]Photos taken with native iOS Camera app are always UIImageOrientationUp
I'm working on building a test case of all possible image and video orientations taken with the iPhone. 我正在努力构建一个使用iPhone拍摄的所有可能图像和视频方向的测试用例。
I've used the native iOS camera app to shoot all 8 possible orientations (UP, DOWN, LEFT, RIGHT) yet for the sample code I'm running it all seems to reporting that the images are 我已经使用原生的iOS相机应用程序来拍摄所有8个可能的方向(向上,向下,向左,向右)但是我正在运行的示例代码似乎都报告图像是
Reference code is printOrientationForName(@“UIImage”, image.imageOrientation);
参考代码是
printOrientationForName(@“UIImage”, image.imageOrientation);
Working example can be found here sugarso/Orientation 可以在这里找到工作示例sugarso / Orientation
Output is here 输出在这里
2014-05-04 15:42:39.651 Orientation[10293:60b] ASSET ALAsset - Type:Photo, URLs:assets-library://asset/asset.JPG?id=E819189D-0696-4C94-8046-804CBF1551E8&ext=JPG
2014-05-04 15:42:39.661 Orientation[10293:60b] UIImage UIImageOrientationUp [0]
2014-05-04 15:42:39.663 Orientation[10293:60b] ASSET ALAsset - Type:Photo, URLs:assets-library://asset/asset.JPG?id=19E29D06-96F2-4B35-A0EB-B2A809A02C79&ext=JPG
2014-05-04 15:42:39.665 Orientation[10293:60b] UIImage UIImageOrientationUp [0]
2014-05-04 15:42:39.667 Orientation[10293:60b] ASSET ALAsset - Type:Photo, URLs:assets-library://asset/asset.JPG?id=265261C0-0479-41C4-BFDC-91AD6887A81F&ext=JPG
2014-05-04 15:42:39.668 Orientation[10293:60b] UIImage UIImageOrientationUp [0]
2014-05-04 15:42:39.669 Orientation[10293:60b] ASSET ALAsset - Type:Photo, URLs:assets-library://asset/asset.JPG?id=BE459DAE-0CFD-4D93-8050-5C62D9F5D0F9&ext=JPG
2014-05-04 15:42:39.670 Orientation[10293:60b] UIImage UIImageOrientationUp [0]
As you can see, all the images are created with UIImageOrientationUp. 如您所见,所有图像都是使用UIImageOrientationUp创建的。 I'm examining the wrong property?
我正在检查错误的财产? Or is the camera app flips all the photos?
或者相机应用翻转所有照片? How should I be taking photos with the given layout.
我应该如何使用给定的布局拍照。
Depends on different things, for instance: 取决于不同的事情,例如:
I wrote this post on my blog ( Exif pain ), maybe it will help to check your issue 我在我的博客上写了这篇文章( Exif痛苦 ),也许这有助于检查你的问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.