Image Converter

Convert images to different formats

Image Converter

AI-generated

Summary

Convert an image from a specified binary property of input items into a chosen target format with adjustable quality.

Inputs

  • binaryPropertyName (required) — The name of the binary property in the input items that contains the image data to be converted.
  • format (required) — The target image format to convert to; options are PNG, JPG, JFIF, WEBP, or AVIF.
  • quality — A number between 1 and 100 to specify the quality of the output image for lossy formats (default 80).

Output shape

a list of items with the same JSON data and the specified binary property replaced by the converted image binary data

Each output item's binary property will contain the converted image data encoded in base64, along with updated metadata such as mimeType, fileExtension, fileName, and fileSize. Supported formats affect mimeType and fileExtension accordingly. Throws an error if the specified binary property is missing or format unsupported.

Discussion