Dev.to WebDev 🛠 Dev 👁 1 📖 1 min read

Building a Privacy-First Image Compressor with WebAssembly

Most "free" image compressors upload your files to a server, cap you at 10 images, or watermark your output. I wanted something different. So I compiled Mozilla's mozJPEG, Google's libwebp, and libaom (AVIF) to WebAssem

Arhan Ahmad
Arhan Ahmad

Posted on Jul 1 • Originally published at toolboximage.com

Building a Privacy-First Image Compressor with WebAssembly

Most "free" image compressors upload your files to a server, cap you at 10 images, or watermark your output. I wanted something different.

So I compiled Mozilla's mozJPEG, Google's libwebp, and libaom (AVIF) to WebAssembly using Emscripten. Each image compresses on a separate Web Worker, saturating all CPU cores. On an 8-core laptop, 8 images compress simultaneously. A batch of 200 photos finishes in seconds.

No uploads. No limits. No data ever leaves your device.

Try it: https://toolboximage.com

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.