Home  >  Article  >  Backend Development  >  图片的尺寸宽高颠倒

图片的尺寸宽高颠倒

WBOY
WBOYOriginal
2016-06-06 20:32:192154browse

取图片的尺寸时, 与上存的图片的宽高尺寸是颠倒的,求解?

回复内容:

取图片的尺寸时, 与上存的图片的宽高尺寸是颠倒的,求解?

好像之前见过一个帖子,就是lz这种情况。估计有可能是因为图片被编辑了,但是一些元信息没有更新。
可以试试使用gd库的imagecreatefromXXX()之后,通过imagesx()imagesy()来获取宽高。

确实有可能是楼上说的情况,图片数据中有一部分是关于方向的信息, 详情见http://www.cocoachina.com/ios/20150605/12021.html

能把问题说清楚不

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn