PicEdit icon

PicEdit

Create and edit images with text overlays and compositions

Add Image

AI-generated

Summary

Add an image over a base canvas or input image, optionally adjusting its position, scale, rotation, and output format.

Inputs

  • outputFormat (required) — Output image format (PNG, JPEG, or WEBP).
  • quality — Image quality setting (1-100), applicable for JPEG and WEBP formats.
  • fieldName — Name of the field in the binary output.
  • inputBinaryField — Name of the binary field containing the input image (leave empty to use JSON canvas data).
  • overlayImagePath (required) — Path to the image file to overlay.
  • imagePositionX — X position of the image on the canvas.
  • imagePositionY — Y position of the image on the canvas.
  • scale — Scale factor for the image.
  • rotation — Rotation angle in degrees.

Output shape

a binary file containing the modified image

Returns the modified image in the specified output format, including the original field name for binary outputs.

Examples

Example 1: Overlay a watermark on an existing image and save it as a PNG.

Set outputFormat to 'png', specify overlayImagePath with the path to the watermark image, and adjust position and scale as needed.

Example 2: Add a logo to a canvas and adjust quality for web usage.

Set outputFormat to 'jpeg', specify the logo's path, adjust quality, and set the appropriate position and rotation.

Discussion