Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

color-thief detects wrong color #218

Open
spidercode opened this issue Jan 4, 2022 · 2 comments
Open

color-thief detects wrong color #218

spidercode opened this issue Jan 4, 2022 · 2 comments

Comments

@spidercode
Copy link

Hi,

I have this sample code that detects color using color-thief

https://jsfiddle.net/spidercode/k6Lumq8y/1/

when I run this, it detects the color which is different in the shade. The color which I am expecting ( RGB(0, 150, 209) ) is not being detected by color-thief.

image

I might be doing something wrong. But couldn't figure it out.

@LuccaGarcia
Copy link

I had a similar issue a while ago, when trying to detect the dominant color of an image the value returned would always be a little off, unfortunately I couldn't find a solution that would not involve rewriting the entire code.

It's sad but apparently color-thief is no longer actively maintained.

@benjaminvanrenterghem
Copy link

It's a problem caused by its core dependency, quantize, which produces the wrong result.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants