Trim Image
trim
Trims the image to remove a uniform border around the image. This operation must be set for the other trim parameters to work, and it will change the size of the image.
There are 2 available values: auto
and color
.
- When the
trim
parameter is set toauto
, the image is trimmed automatically based on the border color. You can adjust the tolerance usingtrim-md
andtrim-sd
. - When the
trim
parameter is set tocolor
, the image will trim away the color specified bytrim-color
, as long as it is within thetrim-tol
threshold.