Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

libvips CLI

$ vips Foundation Low Risk
libvips · AI & Media · LGPL-2.1-or-later · macos / linux / windows

The 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.

FCRS-1.0 Score
87 /100
Good
Medium Confidence
Zero-Friction Install
brew install vips
CLI vs MCP Decision CLI Only

High-throughput local thumbnailing (vips thumbnail) and header inspection (vipsheader) execute orders of magnitude faster in shell than through MCP.

Agent-Readiness Checklist

— JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Deterministic non-interactive commands, self-describing vips list / vips <op> --help, and vipsheader -f <field> extraction, though no native --json output.

  • vipsheader -f extracts individual metadata fields cleanly
  • Self-describing vips <operation> parameter help
Trust & Safety 22 / 25

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
  • vipsheader is strictly read-only
Setup & Portability 14 / 15

First-class packages on Homebrew (brew install vips), Linux distros (libvips-tools), and official Windows builds.

  • Available via brew install vips and Linux repositories
Utility & Efficiency 15 / 15

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
Maintenance & Lineage 9 / 10

Widely adopted foundation/community project (libvips/libvips) backing sharp, Rails, and major media pipelines.

  • Official libvips/libvips repository under LGPL-2.1
Docs & Verifiability 8 / 10

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> --help introspection

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates on local image files.

Side Effects
Read-Only Local Write
Cost & Quotas

Free LGPL-2.1-or-later open-source C library and CLI.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect image dimensions and metadata headers
vipsheader -a image.jpg

Reads image width, height, bands, and EXIF/ICC tags without decoding pixel buffers.

Query a single header field
vipsheader -f width image.jpg

Prints only the requested field (width, height, format) for clean shell scripting.

Controlled Writes & Previews

Generate a WebP thumbnail with streaming resize
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 --json output on vipsheader.
  • ! Format encoder flags use bracket notation (out.webp[Q=80]) rather than standard --quality CLI flags.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI