ImageMagick icon

ImageMagick

Verarbeitung von Bildern und PDFs mit ImageMagick

Thumbnail

AI-generated

Summary

Creates a thumbnail of an image by resizing it to a maximum of the specified pixel dimension while maintaining aspect ratio.

Inputs

  • inputSource (required) — Source of the file: 'binaryData' to use binary data from a previous node, or 'url' to download from a URL.
  • binaryPropertyName — Name of the binary data property to process (required when inputSource is 'binaryData'). Defaults to 'data'.
  • fileUrl — URL of the file to process (required when inputSource is 'url').
  • size (required) — Maximum dimension (width and height) in pixels. The image is resized to fit within this bound while preserving aspect ratio (minValue: 10, maxValue: 2000).
  • outputBinaryPropertyName — Name of the binary property to store the result in. Defaults to 'data'.
  • outputFormat — Target output format. If empty, the original file extension is preserved.

Output shape

A list of items containing one processed image per input item, written to the specified binary property.

The filename is auto-generated as 'thumbnail_[timestamp].[format]'. If an error occurs, the node fails unless 'Continue on Error' is enabled, in which case the error details are returned in the JSON.

Examples

Example 1: Resize an image attached from a previous 'HTTP Request' node to a 300x300 thumbnail.

Input Source: binaryData; Binary Property: data; Size: 300; Output Format: jpg

Example 2: Download and thumbnail an image from a URL, converting it to PNG.

Input Source: url; File URL: https://example.com/photo.jpg; Size: 500; Output Format: png

Links

Discussion