imgix APIs
Rendering API
Trim Color

Trim Color

trim-color

The trim-color parameter defines which color to trim when trim=color is used. It is ignored otherwise.

Valid color values for trim-colorare color keyword (opens in a new tab) or 3- or 6-digit hex colors. When trim=color but trim-color is not defined, trim-color takes the value of the first (top left) pixel in the source image. Try changing the Trim Mode to color below to see how trim-color works.