Shrink a folder of images in one command.
pixjet is a small command-line tool that re-encodes JPEG, PNG and WebP files in bulk. It walks a directory, works on every core you have, and never overwrites an original unless you ask it to.
pixjet ./photos --out ./photos-web --quality 82 --max-width 1920
Parallel by default
One worker per core. A folder of 2,000 phone photos finishes in about a minute on a laptop.
Safe output
Results go to a separate directory with the same tree. Files that would grow are copied as they are.
Sane defaults
Metadata is stripped except orientation and colour profile. Animated files are left alone.
Dry run
--plan prints what would change and how many megabytes you would save, without writing anything.
Typical savings
| Source | Files | Before | After | Saved |
|---|---|---|---|---|
| Phone camera roll (JPEG) | 1,840 | 7.9 GB | 2.3 GB | 71% |
| Screenshots (PNG) | 412 | 610 MB | 188 MB | 69% |
| Product shots (WebP) | 260 | 96 MB | 71 MB | 26% |
Numbers are from our own test folders at quality 82; yours will differ. See the documentation for every flag.