JavaScript image compressor for the browser
compresso.js is a 3.6 KB, zero-dependency library that compresses, resizes, and converts images using the Canvas API — with optional HEIC input and parallel Web Worker batching.
Comment ça marche
- npm install compresso.js
- import { compress } from "compresso.js"
- await compress(file, options)
Questions courantes
- TypeScript?
- First-class types ship with the package.
Pour les développeurs
Intégrez la compression dans votre flux d’envoi :
npm install compresso.jsnpm · Docs