Overview
Sources
Libraries
Images API

Watermark Position X watermark-x

Specify the horizontal x position for watermark image in relation to the source image left border.

This parameter will overwrite the horizontal position value defined by watermark-position

Values

This parameter accepts positive and negative integers. With negative values placing watermark outside of the source image boundaries.

If not watermark-x value is defined, the horizontal position of the watermark image will be defined by watermark-position parameter.

Examples

Using watermark-x=0 will render the watermark image on the left edge of the source image:

GET
https://assets.imglab-cdn.net/woman-02.jpeg?watermark-x=0
Woman posing in the nature with imglab logo applied as watermark and watermark x horizontal position at 0.
x px

Using a negative value will render the watermark image outside source image boundaries. In this example we are using watermark-x=-40:

GET
https://assets.imglab-cdn.net/woman-02.jpeg?watermark-x=-40
Woman posing in the nature with imglab logo applied as watermark and watermark x horizontal position at -40.
x px

Negative values can be useful if you are adding some padding to the image. For this example we are using watermark-x=-40 and setting a padding of 40 pixels with padding=40:

GET
https://assets.imglab-cdn.net/woman-02.jpeg?watermark-x=-40&padding=40
Woman posing in the nature with imglab logo applied as watermark and watermark x horizontal position at -40 with a padding of 40 pixels.
x px