| REPOMATIC-FORMAT-IMAGES(1) | REPOMATIC-FORMAT-IMAGES(1) |
repomatic format-images - Format images with lossless optimization
repomatic format-images [OPTIONS]
Format images by losslessly optimizing them with external CLI tools.
Discovers PNG and JPEG files and compresses them losslessly in-place using oxipng and jpegoptim. Produces a markdown summary table showing before/after sizes and savings.
Only lossless optimizers are used so that results are idempotent: running the command twice produces no further changes.
Required tools:
oxipng is downloaded and checksum-verified from the pinned tool
registry, once per run. jpegoptim has to be on $PATH:
sudo apt-get install jpegoptim
Format images and print summary
repomatic format\-images
CI: write as a GitHub Actions step output
repomatic format\-images \-\-output "$GITHUB_OUTPUT" \-\-output\-format github\-actions
Use a 10% minimum savings threshold
repomatic format\-images \-\-min\-savings 10
Kevin Deldycke
| 2026-09-14 | 7.15.1.dev0 |