thephpleague/color-extractor
Some data may be outdated — see provenance labels.
Extract colors from an image like a human would do. observed · 2026-10-01
Health v2 · maintenance only
94/100
- Activity 92
- Release rhythm 92
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-22. Adoption (stars, forks) is never an input.
- gap_med: 6
- age_days: 4842
- days_rel: 54
- days_push: 51
- n_releases_24m: 2
Adoption not part of the score
1323 stars · 154 forks observed · 2026-10-01
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library that extracts the most representative colors from an image, building a color palette sorted by pixel count. It handles transparency by blending against a configurable background color.
Use cases
- extract dominant colors from an image in php
- generate a color palette from a png or jpeg
- get the most used colors in a picture
- pick representative colors for thumbnails or theme generation
- handle transparent pixels when extracting image colors
When to choose
- you need dominant or representative colors from images in a PHP project
- you want a simple Composer-installable palette extractor with transparency handling
When to avoid
- you need advanced color quantization or perceptual color spaces beyond basic extraction
- you are not working in PHP
Facets
library · maturity stable
image-processing image-processing developer-tools php color-palette dominant-colors gd composer
1 source
- readme: https://github.com/thephpleague/color-extractor · fetched 2026-10-01 · 4500dde3deed
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| thephpleague/color-extractor | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="thephpleague/color-extractor")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem