Compressor.js Next
Published on Feb 12, 2026, filed under tools, development, javascript, performance, optimization. (Share this post, e.g., on Mastodon.)
Compressor.js is a JavaScript image compressor and converter originally made by Chen Fengyuan.
There’s now a modernized, optimized, and maintained fork available with Compressor.js Next—check the demo for what it does and the docs for how you could use it.
I worked on providing Compressor.js Next after Compressor.js hadn’t been updated in three years and when I couldn’t reach Chen to confirm their plans. In line with the license, patching up the project seemed useful.
If you’ve been using Compressor.js and want to upgrade, this is straightforward: Install compressorjs-next instead of compressorjs.
And that’s it—just know that as part of the modernization, ESM is now the default module format (CommonJS is still supported), the noConflict() method has been removed, and Internet Explorer is no longer supported.
About Me
I’m Jens (long: Jens Oliver Meiert), and I’m an engineering lead, guerrilla philosopher, and indie publisher. I’ve worked as a technical lead and manager at various companies (e.g., Google); I’m an active web and tool developer (code optimization, digital defense), a contributor to web standards (like HTML, CSS, WCAG), and a book author (O’Reilly, dxsrc). You’ll like my work if you value principled, pragmatic problem-solving. Let’s connect.
