Imgix APIsRendering APIWatermarkWatermark X Position

Watermark X Position

mark-x

Defines the x-position of the watermark in relation to the left-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-x parameter will overwrite mark-align=left, mark-align=center, mark-align=right, and mark-pad (in the horizontal direction) if set. Use mark-x[N] to style a specific additional watermark layer — styles do not inherit across watermark layers.

mark-x=0 — against the left 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-x=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 width.

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