ImageMagick icon

ImageMagick

Verarbeitung von Bildern und PDFs mit ImageMagick

Quality

AI-generated

Summary

Adjusts the compression quality of an image, optionally converting it to a specific format.

Inputs

  • inputSource — Source of the file to process: Binary Data from a previous node or a URL to download from.
  • binaryPropertyName (required) — Name of the binary property containing the image data (visible when inputSource is binaryData).
  • fileUrl (required) — URL of the image file to process (visible when inputSource is url).
  • quality (required) — Quality value from 1 (low/low quality) to 100 (high/high quality).
  • outputFormat — Target output format (jpg, png, webp, gif, bmp, tiff). Defaults to the original format if empty.

Output shape

a single record with updated binary data

The operation returns the original JSON paired with a new binary property containing the processed image. If outputFormat is omitted, the original file extension is preserved.

Examples

Example 1: Reduce image file size for a JPG input

Input Source: Binary Data, Binary Property: data, Quality: 50, Output Format: jpg

Example 2: Convert a PNG to WebP with high quality

Input Source: URL, File URL: https://example.com/image.png, Quality: 95, Output Format: webp

Example 3: Compress a downloaded image while keeping the original format

Input Source: URL, File URL: https://example.com/photo.jpg, Quality: 70

Links

Discussion