You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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)
andrgb(256, 4, 4)
, repeated multiple times.If you're using
<canvas>
to measure the colors, there is adisplay-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.The text was updated successfully, but these errors were encountered: