Ross ROSS = Recommend OSS · open-source software intelligence for agents

thephpleague/color-extractor

Extract colors from an image like a human would do. observed · 2026-08-28

github.com/thephpleague/color-extractor · PHP · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

88/100

  • Activity 99
  • Release rhythm 66
  • 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: 4793
  • days_rel: 12
  • days_push: 9
  • n_releases_24m: 1

Full methodology

Adoption not part of the score

1323 stars · 155 forks observed · 2026-08-28

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

Member repositories

RepositoryRoleHealth v2
thephpleague/color-extractormain88

For agents

markdown · JSON · MCP: product_card(name="thephpleague/color-extractor")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem