search

Home  >  Q&A  >  body text

objective-c - 从七牛用?imageInfo读取图片宽高,发现颠倒问题?

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

我想大声告诉你我想大声告诉你2856 days ago837

reply all(2)I'll reply

  • phpcn_u1582

    phpcn_u15822017-04-25 09:05:57

    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

    reply
    0
  • PHP中文网

    PHP中文网2017-04-25 09:05:57

    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

    reply
    0
  • Cancelreply