Documentation
Usage
pixjet <input-dir> --out <output-dir> [flags]
| Flag | Default | Meaning |
|---|---|---|
--quality N | 82 | Target quality for lossy formats, 1–100. |
--max-width PX | off | Downscale anything wider than this, keeping aspect ratio. |
--format keep|webp|jpeg | keep | Convert everything to one format, or keep the format of each file. |
--jobs N | cores | Number of parallel workers. |
--plan | off | Report only; write nothing. |
--in-place | off | Replace originals. Asks for confirmation unless --yes is given. |
--keep-meta | off | Keep all EXIF/XMP metadata. |
Exit codes
| Code | Meaning |
|---|---|
| 0 | All files processed. |
| 1 | Some files failed; see the summary. |
| 2 | Bad arguments. |
Config file
Flags can live in .pixjet.toml next to the input directory:
quality = 78 max_width = 1600 format = "webp" exclude = ["raw/**", "*.gif"]
Limits
HEIC and AVIF are not supported yet. Files larger than 200 megapixels are skipped with a warning.