PicEdit icon

PicEdit

Create and edit images with text overlays and compositions

Add Text

AI-generated

Summary

Add text to an image canvas with customizable properties.

Inputs

  • outputFormat (required) — Specifies the output image format (PNG, JPEG, WEBP).
  • quality — Defines the image quality for JPEG or WEBP formats (1-100).
  • fieldName (required) — 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.
  • textSource (required) — Source of the text to add; either manual or from a CSV file.
  • text — Text to add to the canvas (only needed if textSource is 'manual').
  • positionX — X position for the text placement on the canvas (only needed if textSource is 'manual').
  • positionY — Y position for the text placement on the canvas (only needed if textSource is 'manual').
  • fontType (required) — Select between using a system font or a custom font.
  • systemFont — Select a system font (only applicable if fontType is 'system').
  • customFont — Path to the custom font file or font family name (only applicable if fontType is 'custom').
  • fontSize — Font size in pixels for the text (only needed if textSource is 'manual').
  • color — Color of the text (only needed if textSource is 'manual').
  • rotationAngle — Angle of rotation for the text in degrees (only needed if textSource is 'manual').
  • opacity — Opacity level for the text (0-255, where 255 is fully opaque) (only needed if textSource is 'manual').
  • csvFilePath — Path to the CSV file containing text data (only needed if textSource is 'csv').
  • csvFormatInfo — Information on the expected format of the CSV file for text addition.

Output shape

a binary file containing the modified image

The output will contain the image with added text; the format depends on the specified outputFormat parameter.

Examples

Example 1: Add manual text to an image

Specify output format, provide text, position, font settings, and optional quality.

Example 2: Add multiple texts from a CSV file

Provide the CSV file path and format, configure field name, and choose output format.

Discussion