iOS 竖着拍的图片上传之后被旋转了90° 然后我加了 imageMogr/auto-orient
http://7xs0qz.com1.z0.glb.clouddn.com/000000FFPost692016052711243774?imageMogr/auto-orient&imageView2/1/w/414/h/309
返回的图片还是竖着的啊 请问怎么解决,谢谢
大家讲道理2017-04-18 09:06:12
This problem has nothing to do with Qiniu. I suggest you take a look at the imageOrientation property of UIImage.
After adding imageMogr/auto-orient, the vertical image is returned, which means it is a normal result. Are there any problems that need to be solved? If you want to upload the image taken vertically and upload it vertically, and return the vertical image without auto-orient, you can correct the orientation of the image before uploading the image. There are many examples here. Code: http://stackoverflow.com/questions/8915630/ios-uiimageview-how-to-handle-uiimage-image-orientation