Plug Database icon

Plug Database

Run Plug Database commands over REST or Socket.

Tools → Add Image Watermark

AI-generated

Summary

Add a text watermark to an image provided as binary data, customizing watermark text, opacity, output format, quality, and output size limits.

Inputs

  • Binary Property (required) — Name of the binary property containing the input image to be watermarked.
  • Max Input Size Bytes — Maximum allowed size in bytes for the input binary image.
  • Output Binary Property (required) — Name of the binary property where the watermarked image binary will be stored.
  • Watermark Text — Text to overlay as a watermark on the image; defaults to 'Watermark'.
  • Watermark Opacity — Opacity level of the watermark text, between 0.01 and 1, defaulting to 0.4.
  • Output Format — Output image format; options are PNG, JPEG, or WebP with PNG as default.
  • Quality — Output image quality from 1 to 100; default is 80 (applies to lossy formats).
  • Max Output Size Bytes — Maximum allowed size in bytes for the output watermarked image.

Output shape

each input item produces one output item with a binary property containing the watermarked image file.

The node reads the input image from the given binary property and writes the processed image to the specified output binary property. Input and output size limits apply per item. If an image exceeds input size limit, processing will fail for that item. The output image is generated according to options for watermark text, opacity, format, and quality.

Examples

Example 1: Add a watermark reading 'Sample' with 50% opacity to input images in the 'data' binary property and output as JPEG to 'watermarkedImage'.

Set Binary Property to 'data', Output Binary Property to 'watermarkedImage', Watermark Text to 'Sample', Watermark Opacity to 0.5, and Output Format to JPEG.

Links

Discussion