Imagick 不正确的 identifyImage() 函数
Imagick incorrect identifyImage() function
我有垂直图像(1333px 宽度和 2000px 高度),它正确加载,但是当我使用时:
$img->identifyImage();
它打印:
["geometry"] => array(2) {
["width"] => int(2000)
["height"] => int(1333)
}
任何人都可以就发生这种情况的原因提供一些建议吗?
您的图片可能在其 EXIF 数据中设置了方向。看看 Imagick::getImageOrientation
函数 here.
我有垂直图像(1333px 宽度和 2000px 高度),它正确加载,但是当我使用时:
$img->identifyImage();
它打印:
["geometry"] => array(2) {
["width"] => int(2000)
["height"] => int(1333)
}
任何人都可以就发生这种情况的原因提供一些建议吗?
您的图片可能在其 EXIF 数据中设置了方向。看看 Imagick::getImageOrientation
函数 here.