Imgix APIsRendering APIWatermarkWatermark Padding

Watermark Padding

mark-pad

Sets the padding between the watermark and the edge of the image. If no value is provided it will default to 5px. If mark-tile is specified, the value will also represent the padding between tiled watermark images, and must be 0 or greater. Use mark-pad[N] to style a specific additional watermark layer — styles do not inherit across watermark layers.

The edges where the padding is applied are determined by the alignment of the watermark, which can be changed using the mark-align parameter. If the mark-align parameter is unset, the padding will be applied on the bottom right of the watermark.

The following example has the parameter mark-align=top,right set:

mark-pad=0 — flush with the corner
https://assets.imgix.net/docs/rendering-api/food-plate.jpg?w=600&h=400&fit=crop&mark=https%3A%2F%2Fassets.imgix.net%2Fpresskit%2Fimgix-presskit2.pdf%3Ffm%3Dpng%26page%3D6&mark-w=180&mark-align=top,right&mark-pad=0
0

This parameter accepts a relative length: a whole number is pixels, and a decimal between 0 and 1 is a fraction of the base image, taken per axis.

Try it on your own images

Open the sandbox in your imgix dashboard to build a URL against one of your own sources and watch mark-pad change the output as you type.