-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
Hello there! Thank you for making this awesome library!
I was reading the docs and noticed that colors are returned as arrays of integers, presumably assuming sRGB. How does this work with images tagged with a color profile, including colors outside sRGB?
Here's an example with two swatches, an sRGB red and a P3 red.

Trying it on the website seems to produce strange results such as rgb(252, 4, 4)
and rgb(256, 4, 4)
, repeated multiple times.
If you're using <canvas>
to measure the colors, there is a display-p3
mode, though I'm not sure how to detect tagged images. As an MVP, it could expose an option that users can set and just passes it through to the canvas context.
Metadata
Metadata
Assignees
Labels
No labels