PHP - Manual: Gmagick::resampleimage
2025-10-25
(PECL gmagick >= Unknown)
Gmagick::resampleimage — Resample image to desired resolution
$xResolution,$yResolution,$filter,$blurResample image to desired resolution.
xResolutionThe new image x resolution.
yResolutionThe new image y resolution.
filterImage filter to use.
blurThe blur factor where larger than 1 is blurry, smaller than 1 is sharp.
The Gmagick object on success
错误时抛出 GmagickException。
官方地址:https://www.php.net/manual/en/gmagick.resampleimage.php