ImageMagick icon

ImageMagick

Verarbeitung von Bildern und PDFs mit ImageMagick

Resize

AI-generated

Summary

Resizes an image provided via binary data or URL to a specified width and/or height using an ImageMagick API service.

Inputs

  • inputSource — Specifies whether to read the input image from binary data of a previous node or download it from a URL.
  • binaryPropertyName (required) — The binary property name containing the image data when Input Source is set to Binary Data.
  • fileUrl (required) — The HTTP/HTTPS URL of the image to download when Input Source is set to URL.
  • outputBinaryPropertyName — The binary property name where the resized output file will be attached.
  • width — Target width in pixels. At least one of Width or Height must be provided.
  • height — Target height in pixels. At least one of Width or Height must be provided.
  • outputFormat — Target image format (e.g., JPG, PNG, WebP, PDF). If left empty, retains the original file format.

Output shape

a binary file

Returns the original JSON payload paired with the newly generated image attached as binary data under outputBinaryPropertyName. Throws an error if neither width nor height is specified.

Examples

Example 1: Resize incoming binary image to 800px width while maintaining original format

Input Source: Binary Data, Binary Property: data, Width: 800, Output Binary Property: data

Example 2: Download an image from a URL and convert it to a 400x400 WebP thumbnail

Input Source: URL, File URL: https://example.com/image.png, Width: 400, Height: 400, Output Format: webp, Output Binary Property: data

Links

Discussion