Registry / utility / league-color-extractor

league-color-extractor

JSON →
library0.4.0phppackagistunverified

Extract colors from an image as a human would do.

composer require league/color-extractor
INSTALL
IMPORT
SIG · LEAGUE-COLOR-EXTRA
L
league-color-extractor
utilityphpv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ColorExtractor
use League\ColorExtractor\ColorExtractor;

Extract the most representative colors from an image.

use League\ColorExtractor\ColorExtractor; use League\ColorExtractor\Palette; $palette = Palette::fromFilename('image.jpg'); $extractor = new ColorExtractor($palette); $colors = $extractor->extract(5);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
league-color-extractor — pip install league-color-extractor · libregistry