Oxipng
$ oxipng Community Low RiskOxipng is a fast, multithreaded Rust lossless PNG and APNG compressor that shrinks web and app assets without touching pixel data. It offers --dry-run (-d) previews, --out / --dir non-destructive targets, --strip safe metadata removal, and clean quiet flags (-q).
brew install oxipng Local asset compression with --dry-run verification runs fast in shell without 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
Modern Rust clap CLI with --dry-run, --quiet, --stdout, and clean exit codes, though it outputs human text summaries rather than JSON.
- Supports
--dry-run,-q/--quiet, and--stdout - No
--jsonreport flag
Lossless pixel-preserving compression with --dry-run preview, --out/--dir non-destructive targets, and --strip safe vs --strip all distinction.
- Dedicated
--dry-runprevents unwanted disk writes - Supports
--outand--dirto avoid in-place overwrites
Single Rust binary distributed across Homebrew, Cargo, npm wrapper, and GitHub Releases for macOS, Linux, and Windows.
- Available via
brew install oxipng,cargo install oxipng, and releases
Multithreaded Zopfli/libdeflater optimization replaces slower legacy optipng/pngcrush workflows.
- Parallelized PNG/APNG optimization across CPU cores
Actively maintained MIT repository (oxipng/oxipng) with regular releases.
- Active
oxipng/oxipngrepository under MIT
Well-structured oxipng --help and README documenting optimization levels (-o 0..6) and chunk stripping.
- Clear clap-generated
--helpreference
Security, Auth & Guardrails
None required; operates on local PNG/APNG files or stdin/stdout.
Free MIT open-source Rust binary.
# Oxipng Agent Rules - Run `oxipng --dry-run` first to check expected savings before modifying repository assets. - Prefer `--out <file>` or `--dir <dir>` over in-place overwrites unless in-place asset optimization is intended; use `--strip safe` rather than `--strip all` to keep color profiles intact.
Agent-Ready Command Recipes
Safe Read-Only Queries
oxipng -o 4 --dry-run assets/*.png
Computes optimized deflate streams and reports potential byte savings without modifying files.
Controlled Writes & Previews
oxipng -o 4 --strip safe --out optimized.png input.png
Produces a smaller lossless optimized.png while leaving input.png intact.
Strengths for Agents
- + Native
--dry-runand--out/--dirflags make automated asset compression safe and verifiable. - + Multithreaded Rust execution is dramatically faster than legacy
optipng.
Caveats & Pitfalls
- ! Modifies input files in-place if
--out,--dir, or--dry-runis omitted. - ! Outputs human-readable text summaries rather than structured JSON.