Skip to main content
Language

Watermark

In this example, we will show you how to configure the watermark.

watermarkURI#

The asset that should be displayed as a watermark.

The string can be a URL to an external image, a relative path based on the assets folder, or a valid image baseURI.

alignment#

Position the watermark inside the image area. Except for center the watermark corner will be placed in the corresponding corner of the image based on the inset. e.g. 'top-left' will position the top left corner of the watermark in the top left corner of the image.

inset#

Inset the watermark by a relative amount of pixels. The pixel amount is calculated by multiplying the inset value with the smaller side of the cropped image. e.g. specifying a value of 0.1 would mean an inset of 10px if the smallest side is 100px wide

size#

Size of the watermark relative to the smaller image side. The larger side of the watermark will be the same size as the smaller side of the cropped image multiplied by the size. e.g. specifying a value of 0.25 would mean that the larger side of the watermark is 25px if the smallest side of the image is 100px wide