fengyuanchen/compressorjs
JavaScript image compressor. observed · 2026-08-28
Health v2 · maintenance only
81/100
- Activity 99
- Release rhythm 46
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3326
- days_rel: 149
- days_push: 10
- n_releases_24m: 1
Adoption not part of the score
5764 stars · 454 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Compressor.js is a JavaScript library that compresses images in the browser using the native HTMLCanvasElement.toBlob() method. It is typically used to precompress images on the client side before uploading them to a server.
Use cases
- compress images in the browser before upload
- reduce image file size on the client side
- resize images before uploading to a server
- compress user-uploaded photos in a web form
- convert image mime type during compression
- retain EXIF metadata while compressing images
When to choose
- you need client-side image compression before upload to save bandwidth
- you want a small, dependency-free browser library with simple options
- you need resizing, quality control, or mime type conversion for images in the browser
When to avoid
- you need lossless image compression
- you need consistent compression results across all browsers
- you need server-side or Node.js image compression
Facets
library · maturity stable
image-processing file-upload image-processing frontend web-development browser image-compression canvas client-side lossy-compression exif javascript
3 sources
- readme: https://github.com/fengyuanchen/compressorjs · fetched 2026-08-28 · 533b2cc97fb2
- homepage: https://fengyuanchen.github.io/compressorjs/ · fetched 2026-08-29 · e96ab53000cd
- registry_npm: https://registry.npmjs.org/compressorjs · fetched 2026-08-29 · 34b935b17dab
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| fengyuanchen/compressorjs | main | 81 |
For agents
markdown · JSON · MCP: product_card(name="fengyuanchen/compressorjs")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem