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 — Extrait une portion d'une image
Extrait une portion de l'image.
width
height
xyL'objet Gmagick représentant la portion extraite.
Émet une exception GmagickException en cas d'erreur.
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.