Specify the level or intensity of the trim process.
The higher the value, the greater the difference in the colors that will be trimmed in relation to the one get (using trim=auto) or specified (using trim=color and trim-color parameters).
Values
This parameter accepts integer values in the range 0 to 100.
-
0: minimum trim level.
-
100: maximum trim level.
The default value for this parameter is 80.
Examples
We will use the following source image to apply trim-level parameter:
GET
https://assets.imglab-cdn.net/orange.jpeg
Not specifying a value for trim-level parameter will use 80 by default. This value is high enough to remove all the surrounded area with orange color:
GET
https://assets.imglab-cdn.net/orange.jpeg?trim=auto
Reducing trim-level to 20 will result in a smaller area trimmed from the image:
GET
https://assets.imglab-cdn.net/orange.jpeg?trim=auto&trim-level=20