Gmagick::chopimage
PHP function
Edit on GitHub ✎
(PECL gmagick >= Unknown)
Removes a region of an image and trims
Description
Gmagick::chopimage(int $width, int $height, int $x, int $y): Gmagick
Removes a region of an image and collapses the image to occupy the removed portion.
Parameters
widthWidth of the chopped area.
heightHeight of the chopped area.
xX origo of the chopped area.
yY origo of the chopped area.
Return Values
The chopped Gmagick object.
Errors/Exceptions
Throw