# Donaldcwl/browser-image-compression

Image compression in web browser

Repository: https://github.com/Donaldcwl/browser-image-compression
Canonical: https://ross.abutalabs.com/products/browser-image-compression
Language: JavaScript
License: MIT
License Family: permissive
Topics: image-compression, image-compressor, image-upload, compress-image, jpg-compression, png-compression, webp-compression
Last push: 2024-03-08T18:16:16+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3328, "days_push": 908, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1714, forks 187 (observed 2026-08-28T04:05:26.179104+00:00)

## What it is
A JavaScript library that compresses jpeg, png, webp, and bmp images directly in the web browser by reducing resolution or storage size. It supports non-blocking multi-threaded compression via web workers and is designed to shrink images before uploading to a server.

## Use cases
- compress images before uploading to save bandwidth
- reduce image file size in the browser
- resize images client-side before upload
- compress user-uploaded photos in a web app
- shrink jpeg png webp files in the browser
- non-blocking image compression with web workers

## When to choose
- you need client-side image compression before upload
- you want to reduce bandwidth by shrinking images in the browser
- you need a simple async API usable with React, Angular, or Vue
- you want multi-threaded compression that doesn't block the UI

## When to avoid
- you need server-side or Node.js image compression
- you need advanced editing like cropping or filters
- you require formats beyond jpeg, png, webp, or bmp

## Facets
- artifact type: library
- maturity: stable
- function: image-processing, file-upload
- domain: image-processing, web-development, frontend
- platform: browser
- tags: image-compression, jpeg, png, webp, web-worker, client-side, web-server

## Member repositories
- Donaldcwl/browser-image-compression (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:26.179104+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:34:37.541606+00:00, confidence not recorded.
  - readme: https://github.com/Donaldcwl/browser-image-compression (fetched 2026-08-28T04:05:26.179104+00:00, sha 08396ae40e2c)
  - registry_npm: https://registry.npmjs.org/browser-image-compression (fetched 2026-08-29T11:10:51.082603+00:00, sha e97b35526b08)
- Data as of 2026-08-30T08:39:29.467469+00:00.
