Imgix APIsRendering APIWatermarkWatermark Gradient Hue

Watermark Gradient Hue

mark-gradient-hue

The mark-gradient-hue parameter sets which way around the hue wheel the gradient travels between two colors. It follows the CSS Color 4 rules and defaults to shorter.

ValuePath taken
shorter (default)The shorter way around the wheel
longerThe longer way, sweeping through the opposite hues
increasingThe path along which the hue angle increases
decreasingThe path along which the hue angle decreases

It only has an effect in a cylindrical color space — set mark-gradient-cs to oklch, lch, hsl or hsv first.

The default, shorter
https://assets.imgix.net/docs/rendering-api/food-plate.jpg?w=600&h=400&fit=crop&mark=https%3A%2F%2Fassets.imgix.net%2Fexamples%2Fbluehat.jpg&mark-w=220&mark-align=bottom,center&mark-gradient=ffff2200,ff0044ff&mark-gradient-cs=oklch
oklch