Overview
Sources
Libraries
Images API

Watermark Padding watermark-padding

Specifies a number of pixels to be added as padding to the watermark image.

Values

This parameter accepts integer values in the range 0 to 500 with 0 disabling watermark padding.

  • 1: add 1 pixel of padding to the watermark image.
  • 500: add 500 pixels of padding to the watermark image.

The default value for this parameter is 5, adding a padding of 5 pixels to the watermark image.

watermark-padding sets the specified value to all edges of the watermark image. To set a value for one specific edge you can use the following parameters:

  • watermark-padding-top
  • watermark-padding-right
  • watermark-padding-bottom
  • watermark-padding-let

Examples

If no value is specified for watermark-padding a default value of 5 is used:

GET
https://assets.imglab-cdn.net/woman-02.jpeg
Woman posing in the nature with imglab logo applied as watermark with a default watermark padding of 5 pixels.
x px

It is possible to remove watermark padding using watermark-padding=0:

GET
https://assets.imglab-cdn.net/woman-02.jpeg?watermark-padding=0
Woman posing in the nature with imglab logo applied as watermark without a watermark padding of 0 pixels.
x px

For this example we are specifying a right watermark padding of 60 pixels with watermark-padding-right=60:

GET
https://assets.imglab-cdn.net/woman-02.jpeg?watermark-padding-right=60
Woman posing in the nature with imglab logo applied as watermark with a watermark right padding of 60 pixels.
x px

In this example we are specifying a padding of 60 pixels with watermark-padding=60 parameter:

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