Documentation

trim Trim Image

Trimming an image removes a uniform border around the image. There are 2 available values: auto and color.

When the trim parameter is set to auto, the image is trimmed automatically.

When the trim parameter is set to color, the image will trim a certain color around the edge of the image of a color specified by trimcolor as long as the color is within the treshold trimtol.

This operation will change the size of the image.