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

Oxipng

$ oxipng Community Low Risk
Oxipng · AI & Media · MIT · macos / linux / windows

Oxipng 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).

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

Local asset compression with --dry-run verification runs fast in shell without 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 20 / 25

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 --json report flag
Trust & Safety 23 / 25

Lossless pixel-preserving compression with --dry-run preview, --out/--dir non-destructive targets, and --strip safe vs --strip all distinction.

  • Dedicated --dry-run prevents unwanted disk writes
  • Supports --out and --dir to avoid in-place overwrites
Setup & Portability 14 / 15

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
Utility & Efficiency 13 / 15

Multithreaded Zopfli/libdeflater optimization replaces slower legacy optipng/pngcrush workflows.

  • Parallelized PNG/APNG optimization across CPU cores
Maintenance & Lineage 9 / 10

Actively maintained MIT repository (oxipng/oxipng) with regular releases.

  • Active oxipng/oxipng repository under MIT
Docs & Verifiability 8 / 10

Well-structured oxipng --help and README documenting optimization levels (-o 0..6) and chunk stripping.

  • Clear clap-generated --help reference

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates on local PNG/APNG files or stdin/stdout.

Side Effects
Read-Only Local Write
Cost & Quotas

Free MIT open-source Rust binary.

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

Preview lossless PNG compression savings without writing
oxipng -o 4 --dry-run assets/*.png

Computes optimized deflate streams and reports potential byte savings without modifying files.

Controlled Writes & Previews

Optimize PNG to a separate output file
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-run and --out/--dir flags 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-run is omitted.
  • ! Outputs human-readable text summaries rather than structured JSON.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI