Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Image with wrong Dominant Colors #84

Open
hugorojasppm opened this issue Feb 9, 2018 · 1 comment
Open

Image with wrong Dominant Colors #84

hugorojasppm opened this issue Feb 9, 2018 · 1 comment

Comments

@hugorojasppm
Copy link

I if use this example image:
http://cdn.laprensa.com.ni/wp-content/uploads/2015/09/270915espElChipotephoto05.jpg

Got as dominant color,

rgb(255,255,253)

I want specifically detect if the dominant color is white, and this image does not.
Yet I am getting this image as a valid one when is not?

I used the base-single.html from demo folder.
How this can be solved?

@AlfredJKwack
Copy link
Collaborator

Hi,

I've added a CodePen with your example image (converted to Base64 inline to avoid CORS) as well as one using the underlying library (rgbaster.js). The dominant color as detected - at least on OSX Chrome and Safari, more on that below - appear to be rgb(255,255,255) and the secondary is rgb(255,255,253).

With regards to why you may be getting the wrong perceived colour, you may want to read through the comments on the below two issues:

I hope this helps.

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

No branches or pull requests

2 participants