libvips CLI
$ vips Foundation Low RiskThe libvips CLI (vips, vipsheader, vipsthumbnail) processes massive multi-gigapixel images in a fraction of the memory and time required by ImageMagick. It converts JPEG, PNG, WebP, AVIF, HEIC, TIFF, and Deep Zoom pyramids (dzsave) deterministically via demand-driven streaming.
brew install vips High-throughput local thumbnailing (vips thumbnail) and header inspection (vipsheader) execute orders of magnitude faster in shell than through MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic non-interactive commands, self-describing vips list / vips <op> --help, and vipsheader -f <field> extraction, though no native --json output.
vipsheader -fextracts individual metadata fields cleanly- Self-describing
vips <operation>parameter help
Never mutates input files in-place (vips always takes explicit input and output paths) and enforces streaming memory bounds.
- No in-place
mogrify-style mutation command vipsheaderis strictly read-only
First-class packages on Homebrew (brew install vips), Linux distros (libvips-tools), and official Windows builds.
- Available via
brew install vipsand Linux repositories
Fastest general-purpose CLI for resizing, WebP/AVIF/JXL conversion, and Deep Zoom tiling with low memory footprint.
- Demand-driven horizontal pipeline avoids full-image RAM buffering
Widely adopted foundation/community project (libvips/libvips) backing sharp, Rails, and major media pipelines.
- Official
libvips/libvipsrepository under LGPL-2.1
Clear using-cli.html documentation and built-in per-operation --help, though bracketed save-option syntax (out.jpg[Q=85]) takes familiarity.
- Official CLI docs and
vips <op> --helpintrospection
Security, Auth & Guardrails
None required; operates on local image files.
Free LGPL-2.1-or-later open-source C library and CLI.
# libvips CLI (vips) Agent Rules - Check image metadata with `vipsheader -a` before decoding giant TIFF/PNG assets. - Pass save options in brackets (e.g. `out.webp[Q=80,strip]`) and always write to a new output path.
Agent-Ready Command Recipes
Safe Read-Only Queries
vipsheader -a image.jpg
Reads image width, height, bands, and EXIF/ICC tags without decoding pixel buffers.
vipsheader -f width image.jpg
Prints only the requested field (width, height, format) for clean shell scripting.
Controlled Writes & Previews
vips thumbnail input.jpg thumb.webp 800
Shrink-on-load resizes input.jpg to 800px width and writes thumb.webp using minimal RAM.
Strengths for Agents
- + Orders of magnitude faster and far lower memory usage than ImageMagick for resizing and thumbnails.
- +
vipsheader -f <field>gives scripts exact metadata values without loading pixel data.
Caveats & Pitfalls
- ! Lacks native
--jsonoutput onvipsheader. - ! Format encoder flags use bracket notation (
out.webp[Q=80]) rather than standard--qualityCLI flags.