The array returned is in the format
Array
(
[x] => 300
[y] => 300
)
PHP - Manual: Gmagick::getimageresolution
2024-11-15
(PECL gmagick >= Unknown)
Gmagick::getimageresolution — Gets the image X and Y resolution
Returns the resolution as an array.
此函数没有参数。
Returns the resolution as an array.
错误时抛出 GmagickException。
官方地址:https://www.php.net/manual/en/gmagick.getimageresolution.php