Picsart Image AI icon

Picsart Image AI

Image processing with Picsart API: convert formats, crop, resize, remove backgrounds, enhance, upscale, restore faces, watermark, and analyze images

DATA → Watermark

AI-generated

Summary

Adds a watermark or logo to source images using the Picsart API.

Inputs

  • inputBinaryField (required) — The name of the input binary field containing the source image.
  • watermarkSource — Choose how to provide the watermark image: 'url' (enter a URL) or 'binary' (select a binary field).
  • watermarkBinaryField — The name of the input binary field containing the watermark image (required when watermarkSource is 'binary').
  • watermark_url — URL of the watermark image (required when watermarkSource is 'url').
  • anchor_point — Position where the watermark will be placed (e.g., 'top-left', 'center-middle', 'tile').
  • watermark_width — Width of the watermark in pixels. Set to 0 to keep the original width.
  • watermark_height — Height of the watermark in pixels. Set to 0 to keep the original height.
  • watermark_opacity — Opacity of the watermark (0-100). 0 is transparent, 100 is opaque.
  • watermark_angle — Rotation angle of the watermark in degrees (0-360).
  • watermark_padding_x — Horizontal padding of the watermark in pixels.
  • watermark_padding_y — Vertical padding of the watermark in pixels.
  • format — Output image format: JPG, PNG, or WEBP.

Output shape

A binary item containing the watermarked image and a JSON object with processing details.

The binary data contains the output image with the watermark applied. The JSON output includes parameters used (anchor point, dimensions, opacity, etc.).

Examples

Example 1: Add a semi-transparent logo to the bottom-right of an image.

Input Binary Field: 'data'; Watermark Source: 'url'; Watermark URL: 'https://example.com/logo.png'; Anchor Point: 'bottom-right'; Watermark Opacity: 50; Format: 'JPG'

Example 2: Tile a watermark across the entire image.

Input Binary Field: 'data'; Watermark Source: 'binary'; Watermark Binary Field: 'logo'; Anchor Point: 'tile'; Format: 'PNG'

Links

Discussion