Imgix APIsRendering APIBlendingBlend Gradient Stops

Blend Gradient Stops

blend-gradient-stops

The blend-gradient-stops parameter sets where each blend-gradient color sits along the gradient. Without it the colors are spaced evenly.

Pass one position per color, from 0 to 100. A stop lower than the one before it is raised to match, so the sequence never moves backwards.

The count must match. Pass exactly as many stops as colors; any other number drops the parameter entirely and the colors fall back to even spacing, with blend-gradient-stops left out of the X-Imgix-Params response header. This is the most common way the parameter appears to do nothing.

Stops are what turn a gradient into a usable scrim: holding the transparent color until halfway down leaves the blend layer’s subject clear and darkens only the band beneath it.

The default - the two colors spaced evenly
https://assets.imgix.net/examples/clouds.jpg?w=600&h=400&fit=crop&blend=https%3A%2F%2Fassets.imgix.net%2Fexamples%2Fbluehat.jpg&blend-mode=normal&blend-size=inherit&blend-gradient=00000000,cc000000
00000000,cc000000