Overview
Sources
Libraries
Images API

Trim Color trim-color

Specifies the color to be used when trim color mode is enabled using trim=color parameter.

Values

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.

Example

We will use the following source image to apply trim-color parameter:

GET
https://assets.imglab-cdn.net/horizon.jpeg
Man looking at the horizon with a gray border.
x px

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:

GET
https://assets.imglab-cdn.net/horizon.jpeg?trim=color&trim-color=gray
Man looking at the horizon with gray border trimmed using gray as value to trim-color parameter.
x px