Updated Sep 21, 2026

Utilities

Resize, optimize, and convert images

One image in, one resized or converted image out.

Agent

overview

What imagemagick does

Connect an image and the node runs ImageMagick 7 with the input first and a workflow output path last. Set -resize to dimensions such as 800x600, 50%, or 68x22, then set output-format to png, jpg, webp, or gif.

-quality controls compression quality for formats that support it. -strip removes profiles, comments, and metadata. -auto-orient rotates pixels according to orientation metadata and then resets that orientation.

ImageMagick transforms pixels and image containers. It does not extract document text or preserve every format-specific metadata field. Use ExifTool to inspect metadata before stripping it.

source github.com/ImageMagick/ImageMagick

use cases

Where imagemagick fits

Create a thumbnail

Set -resize to bounded dimensions and write a smaller image for reports or notifications.

Remove image metadata

Enable -strip to remove profiles, comments, and embedded metadata from the output copy.

Normalize orientation

Enable -auto-orient so photos display consistently after downstream processing.

reference

imagemagick inputs and flags

6 inputs
NameTypeFlagDescription
inputFILE--inputInput image file.
resizeSTRING--resizeOutput dimensions such as 800x600 or 50%.
qualitySTRING--qualityOutput compression quality from 0 to 100.
stripBOOLEAN--stripRemove profiles, comments, and metadata.
output-formatSTRING--output-formatOutput image format such as png, jpg, webp, or gif.

Showing key inputs. imagemagick exposes 6 inputs in total.

Full flag reference (6 inputs)
NameTypeFlagDescription
inputFILE--inputInput image file
resizeSTRING--resizeOutput dimensions such as 800x600 or 50%
qualitySTRING--qualityOutput compression quality from 0 to 100
stripBOOLEAN--stripRemove profiles, comments, and metadata
auto-orientBOOLEAN--auto-orientRotate the image according to its orientation metadata
output-formatSTRING--output-formatOutput image format such as png, jpg, webp, or gif

example

Run imagemagick

imagemagick · command
# ImageMagick 7magick input.png -resize 68x22 -strip output.png
sample output
output.png PNG 68x22 68x22+0+0 8-bit sRGB

guidance

Choosing imagemagick

Use ImageMagick when the workflow must alter image pixels, dimensions, orientation, compression, or format. Use ExifTool when metadata is the actual result.

exiftool

Reads image and document metadata without changing pixels.

tesseract

Extracts text from image pixels with OCR.

ffmpeg

Transforms video and audio, and can process image sequences.

faq

imagemagick questions

It uses the ImageMagick 7 magick command.

Run imagemagick yourself

A 272x88 PNG fixture feeds ImageMagick with -resize 68x22 and output-format set to png, producing a smaller PNG.

Facts on this page come from the live Trickest tool library.