A slight note since this is not immediately obvious:
Just as the C CropImage() function, you can specify all zero parameters to get an "autocrop" effect, meaning it will remove all single-color "edges" of an image.(PECL gmagick >= Unknown)
Gmagick::cropimage — Обрезает изображение
Обрезает изображение.
width
height
xyОбрезанный объект Gmagick.
Вызывает GmagickException, если возникла ошибка.
A slight note since this is not immediately obvious:
Just as the C CropImage() function, you can specify all zero parameters to get an "autocrop" effect, meaning it will remove all single-color "edges" of an image.