Skip to main content
Language

Watermark

Watermark

PhotoEditor SDK supports several configuration options for WatermarkSettings allowing flexible adaptation to different needs and use cases.

If adding the watermark is the only editing operation to be performed, please set the output mode to EXPORT_ALWAYS to export the photo with the watermark.

Watermark image#

Here, we set the image for the watermark by providing an ImageSource created from a resource drawable. Alternatively, you can also create it from a File or a Uri.

The watermark itself is not processed, so to achieve the effect of transparency, make sure that your input image supports that (use a PNG file with an alpha channel).

Size#

The default size of the watermark relative to the smaller side of the photo is 20%. In this example, we set it to 30%.

Inset#

The default inset of the watermark relative to the smaller side of the photo is 5%. In this example, we set it to 10%.

Alignment#

The default alignment of the watermark is bottom left. In this example, we set it to bottom right.