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

SourceFilesBeforeAfterSaved
Phone camera roll (JPEG)1,8407.9 GB2.3 GB71%
Screenshots (PNG)412610 MB188 MB69%
Product shots (WebP)26096 MB71 MB26%

Numbers are from our own test folders at quality 82; yours will differ. See the documentation for every flag.