Imgix APIsRendering APIWatermarkWatermark Gradient Angle

Watermark Gradient Angle

mark-gradient-angle

The mark-gradient-angle parameter sets the direction a linear mark-gradient runs. It defaults to 180, top to bottom.

Angles follow the CSS convention, naming the direction the gradient runs toward: 0 points up, and angles turn clockwise. Any number wraps, so -90 is the same as 270.

AngleDirection
0To the top
90To the right
180 (default)To the bottom
270To the left

A side or corner keyword is also accepted in place of degrees — top, right, bottom, left, or a pair such as bottom,left — naming the direction the gradient runs toward. A pair must be one vertical side and one horizontal: top,bottom and left,right are rejected, as is any list of three or more. A corner’s angle follows the layer’s aspect ratio rather than being a flat 45 degrees, since the gradient line runs perpendicular to the diagonal.

The angle is measured against the watermark’s own box, not the picture’s.

The default, 180 — top to bottom
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=cc000000,00000000
cc000000,00000000