client-compress

JSON →
library 2.2.2 ·javascript
verified May 9, 2026

A client-side JavaScript image compression library that uses the Canvas API to compress images in the browser before upload. Current stable version is 2.2.2, released periodically with bug fixes and improvements. Key differentiators: returns Blob objects (not base64) for accurate size tracking, supports EXIF orientation correction for Android/iOS images, offers configurable max dimensions and quality, and provides a clean async/await API. Alternative to compress.js library with better option handling and bug fixes. Does not work in Node.js (browser/Canvas only). Limitations: transforms PNG transparency to black background, and GIFs lose animation.

total hits 15
actors 5 distinct systems
last hit 18h ago AhrefsBot
MetaBot
3
ByteDance
2
Search engines
1
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇫🇷 France · 🇸🇬 Singapore · 🇲🇽 Mexico