| Crates.io | metazap |
| lib.rs | metazap |
| version | 0.1.3 |
| created_at | 2025-10-26 23:11:58.385908+00 |
| updated_at | 2025-11-05 18:01:41.332162+00 |
| description | CLI for zapping metadata from PNG/JPEG trees with optional oxipng optimization |
| homepage | https://github.com/fibnas/metazap |
| repository | https://github.com/fibnas/metazap |
| max_upload_size | |
| id | 1901993 |
| size | 32,371 |
Metazap is a small CLI tool for recursively stripping metadata from PNG and JPEG images. It optionally creates backups, performs dry runs, and can run oxipng for lossless PNG recompression after the metadata zap.
--no-recursive)..bak backups before overwriting files.oxipng pass (-z/--optimize) for smaller PNGs.cargo build --release
# or install globally during development
cargo install --path .
metazap [OPTIONS] [--input <DIR>] [--output <DIR>]
| Flag | Description |
|---|---|
-i, --input <DIR> |
Directory to scan (defaults to .). |
-o, --output <DIR> |
Optional destination directory; omitted means in-place overwrite. |
-r/--recursive, --no-recursive |
Toggle recursion (defaults to true). |
-d, --dry-run |
Log the planned work without touching files. |
-z, --optimize |
Run oxipng after zapping PNGs for extra savings. |
-b, --backup |
Copy in-place targets to *.bak.<ext> before writing. |
Examples:
# Rewrite the current directory in-place, keeping backups
metazap --backup
# Clean ~/Pictures into ./cleaned without touching the originals
metazap -i ~/Pictures -o ./cleaned
# Inspect exactly what would run before committing
metazap --dry-run --no-recursive
cargo fmt keeps the style consistent.cargo clippy -- -D warnings is recommended for catching mistakes early.