Color Palette Extraction - #1509
Conversation
|
@deluxetom I've moved a few things around. Mainly put the quantization logic directly to the palette and added a method to quantize but keep original channel values. Thanks again for the support. |
|
@olivervogel last review, almost there :) |
Unfinished Business
~~src/Analyzers/AbstractPaletteAnalyzer.php:25 - every sampled pixel calls $image->colorAt(), which goes through Image::analyze() and a full AbstractDriver::specialize(). Up to ~111k specializations per analysis on a 10000x10000 image. Reuse one specialized analyzer, or do a driver-level bulk pixel read.~~ ✅ Done
Swatches and palettes stay separated. If more functionality is needed it is always possible to convert to a palette. Renamed "swatches" to "theme".
Implemented
✅ Done |
Method now selects most popular color by count instead of just first color.
The ability to generate color palettes from an image instance.
And more ...