七牛云 iOS 竖着拍的图片上传之后被旋转了90°
ringa_lee
ringa_lee 2017-04-18 09:04:12
0
1
806

iOS 竖着拍的图片上传之后被旋转了90° 然后我加了 imageMogr/auto-orient
http://7xs0qz.com1.z0.glb.clouddn.com/000000FFPost692016052711243774?imageMogr/auto-orient&imageView2/1/w/414/h/309

返回的图片还是竖着的啊 请问怎么解决,谢谢

ringa_lee
ringa_lee

ringa_lee

reply all(1)
大家讲道理

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!