Convert
AI-generatedSummary
Converts input images or PDFs to specified formats via the ImageMagick API, supporting binary data from previous nodes or URLs.
Inputs
- inputSource (required) — Source of the file to process: binaryData from the previous node or a URL.
- binaryPropertyName — Name of the binary property in the input item to use when inputSource is binaryData (only visible for binaryData).
- fileUrl — URL of the file to download when inputSource is url (only visible for url).
- outputBinaryPropertyName — Name of the binary property to store the processed output.
- outputFormat (required) — Target format for conversion (jpg, png, webp, gif, bmp, tiff, pdf).
- density — Resolution in DPI for PDF to image conversion (72-600). Has no effect for image to image conversion.
Output shape
A list of items with updated binary data in the specified output property.
If the input source is a URL, the file is downloaded before processing. The output filename is generated automatically (e.g., 'convert_1234567890.png').
Examples
Example 1: Convert a binary image from a previous node to WebP.
Input Source: Binary Data, Binary Property: data, Output Format: webp
Example 2: Convert a PDF from a URL to PNG at 300 DPI.
Input Source: URL, File URL: https://example.com/file.pdf, Output Format: png, Density: 300