trim-color
Specifies the color to be used when trim color mode is enabled using trim=color parameter.
trim=color
Specify a color is mandatory when trim color mode is enabled. If the color is not specified the trim will not have any effect.
For more information on how to specify colors visit the color values section.
We will use the following source image to apply trim-color parameter:
GET https://assets.imglab-cdn.net/horizon.jpeg x px
https://assets.imglab-cdn.net/horizon.jpeg
In this example we are specifying trim=color and trim-color=gray parameters resulting in the trimming of the gray surrounding area of the image:
trim-color=gray
GET https://assets.imglab-cdn.net/horizon.jpeg?trim=color&trim-color=gray x px
https://assets.imglab-cdn.net/horizon.jpeg?trim=color&trim-color=gray