Plug Database icon

Plug Database

Run Plug Database commands over REST or Socket.

Tools → Convert Image

AI-generated

Summary

Convert input binary image data from the specified binary property to a different image format with optional quality settings and size limits.

Inputs

  • Tool Category — Select 'Image' to access image-related conversion tools within the Tools resource.
  • Binary Property (required) — Name of the binary property to read the input image data from each item.
  • Max Input Size Bytes — Maximum allowed size in bytes for the input image binary data; defaults to 25,000,000 bytes.
  • Output Binary Property (required) — Name of the binary property to store the converted image data for each output item.
  • Image Options — Configuration for the output image including format (PNG, JPEG, WebP), quality (1-100), and maximum output size in bytes.

Output shape

a list of items each containing the original data plus the converted image stored in the specified binary property

Input items must contain a binary property with image data to convert. The operation processes each item independently, enforcing input size limits before conversion. Converted images are output in the chosen format and quality under the designated output binary property. Errors occur if size constraints are violated or conversion fails.

Examples

Example 1: Convert PNG images from the input data property to JPEG format with quality 80, saving results in the data property.

Set 'Binary Property' to 'data', 'Image Options' with format 'JPEG' and quality 80, and 'Output Binary Property' to 'data'.

Links

Discussion