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 — Extrai uma região da imagem
Extrai uma região da imagem.
width
height
xyO objeto Gmagick recortado.
Lança uma exceção GmagickException em caso de erro.
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.