Skip to content

Color Palette Extraction - #1509

Draft
olivervogel wants to merge 28 commits into
developfrom
feat/color-palette-lazy
Draft

Color Palette Extraction#1509
olivervogel wants to merge 28 commits into
developfrom
feat/color-palette-lazy

Conversation

@olivervogel

@olivervogel olivervogel commented Aug 10, 2026

Copy link
Copy Markdown
Member

The ability to generate color palettes from an image instance.

// palette extraction
$popular = $image->colors()->popular(limit: 512);
$dominant = $image->colors()->dominant(limit: 5);
$swatches = $image->colors()->swatches();

// swatches
$vibrant = $swatches->vibrant();
$muted = $swatches->muted();
$darkVibrant = $swatches->darkVibrant();
$darkMuted = $swatches->darkMuted();
$lightVibrant = $swatches->lightVibrant();
$lightMuted = $swatches->lightMuted();

// palettes
$mostPopular = $popular->first();
$mostDominant = $dominant->first();

// color space transformation
$cmykPopular = $popular->toColorspace(Cmyk::class)

@olivervogel olivervogel changed the title Color Palettes Color Palette Extraction Aug 10, 2026
@olivervogel
olivervogel marked this pull request as draft August 10, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant