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

Minimum percentage savings to keep an optimized file.
Minimum absolute byte savings to keep an optimized file.
Output file path. Defaults to stdout.
Format for --output. github-actions produces format for PR template consumption in workflows.
Show this message and exit.

Minimum percentage savings to keep an optimized file.
Minimum absolute byte savings to keep an optimized file.
Output file path. Defaults to stdout.
Format for --output. github-actions produces format for PR template consumption in workflows.
Show this message and exit.

0
Success.
1
A runtime error, or an aborted prompt (Ctrl-C, a declined confirmation).
2
A usage error: unknown option, invalid value, missing operand, or an unparsable configuration file.

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