DEV Community

吴美良
吴美良

Posted on

I Built a CLI Image Compressor — 73% Smaller in 0.1s

I just shipped compressfast — a command-line image compressor that runs entirely on your machine. No uploads, no API
keys, no limits.

One command:
npx compressfast photo.jpg --quality 80

What it does:

  • Compress JPEG, PNG, WebP, AVIF
  • Batch process entire folders
  • Resize while compressing
  • Watch mode for automatic processing
  • All local — files never leave your machine

Real results:
141.6 KB → 37.4 KB (-73.6%)
Time: 0.1s

Built with: Sharp (libvips) — the fastest image processing library for Node.js.

npm: npmjs.com/package/compressfast
GitHub: github.com/WML123270/compressfast

Try it: npx compressfast --help

Top comments (0)