lokesh / color-thief

Grab the color palette from an image using just Javascript. Works in the browser and in Node.
https://lokeshdhakar.com/projects/color-thief/
MIT License
12.34k stars 1.31k forks source link

Feature request: Support OKLCH / Display P3 color space #247

Open danrichman opened 10 months ago

danrichman commented 10 months ago

As browsers are now offering support for CSS and assets in the Display P3 color space, it would be great if color-thief was able to extract dominant P3 OKLCH color palettes from P3 images.

https://oklch.com/ https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl https://chriscoyier.net/2023/01/22/ok-oklch-👑/ https://developer.apple.com/news/?id=5cda5ipr https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklch