objective-c - 从七牛用?imageInfo读取图片宽高,发现颠倒问题?
我想大声告诉你
我想大声告诉你 2017-04-25 09:03:57
0
2
802

我将图片上传至七牛,后根据图片的宽高进行显示,发现图片的宽高颠倒了?仅有少量图片有此情况,大部分都是正常的,为什么

我想大声告诉你
我想大声告诉你

reply all(2)
phpcn_u1582

Now it is found that when reading the image?imageInfo, "format":"jpeg","width":3264,"height":2448,"colorModel":"ycbcr","orientation":"Right-top" When the direction is Right-top, the width and height of the image are reversed

洪涛

Your picture is processed by the browser, which means that there are rotation parameters when the picture is taken, and the browser automatically adjusts it. Therefore, the width and height of the picture do not match when you view it. It is recommended that you refer to the documentation
http ://kb.qiniu.com/5vw40ah8

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template