我有图片吗?图片格式是gif。
<?php
$animation = new Imagick('1.gif');
echo $animation->getImageWidth();
echo "\n";
echo $animation->getImageHeight();
?>
返回70 124
;
<?php
$a = getimagesize('1.gif');
echo ($a[3]);
?>
返回width="160" height="217"
;我尝试了其他 gif 图片,结果是一样的。