Imgix APIsRendering APIWatermarkWatermark Y Position

Watermark Y Position

mark-y

Defines the y-position of the watermark in relation to the top-most edge of the base image.

The value can be positive or negative, written either as a whole number of pixels or as a decimal fraction of the image (see below). If the value is negative, the image will be partially outside the base image boundary. The mark-y parameter will overwrite mark-align=top, mark-align=middle, mark-align=bottom, and mark-pad (in the vertical direction) if set. Use mark-y[N] to style a specific additional watermark layer — styles do not inherit across watermark layers.

mark-y=0 — against the top edge
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-y=0
0

This parameter accepts a relative length: a whole number is pixels, and a decimal between -1 and 1 is a fraction of the base image’s height.

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-y change the output as you type.