photopea/UPNG.js
Fast and advanced PNG (APNG) decoder and encoder (lossy / lossless) observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- 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: 3445
- days_rel: n/a
- days_push: 1132
- n_releases_24m: 0
Adoption not part of the score
2215 stars · 264 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
UPNG.js is a small, fast JavaScript library for encoding and decoding PNG and APNG images, serving as the main PNG engine for the Photopea image editor. It supports both lossless compression and lossy minification via color quantization, similar to TinyPNG.
Use cases
- compress png images in javascript
- encode png from canvas pixel data
- create animated apng files in the browser
- minify png files like tinypng
- decode png files to raw rgba pixel data
- save 16-bit color png images
- reduce png file size by limiting color count
When to choose
- you need PNG or APNG encoding/decoding in JavaScript without native dependencies
- you want lossy PNG compression through color quantization
- you need low-level control over bit depth and channel count when encoding
- you are building a browser or Node.js image processing pipeline
When to avoid
- you need to work with formats other than PNG/APNG such as JPEG or WebP
- you require GPU-accelerated or extremely high-throughput image processing
- you need a full image editing feature set rather than just PNG codec functionality
Facets
library · maturity stable
image-processing compression serialization image-processing graphics web-development files browser cross-platform png apng encoder decoder image-optimization quantization lossy-compression lossless-compression photopea nodejs javascript
1 source
- readme: https://github.com/photopea/UPNG.js · fetched 2026-08-28 · 857fc8e8df7f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| photopea/UPNG.js | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="photopea/UPNG.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem