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.61k stars 1.31k forks source link

Single colour on white gives unexpected result #76

Open smth opened 9 years ago

smth commented 9 years ago

Is this "Dominant Color" correct? I would have expected #2ab5c8, given that white is ignored (right?). Is there a way to consistently get that result I'm expecting, i.e the colour covering the most area? For example, the colour in the middle of the palette is pretty close (might be a coincidence). single-colour

perrarina commented 9 years ago

I'm experiencing the same problem with a similar blue.

henrikhelmers commented 8 years ago

I am having a similar issue with white and mostly single color. The expected dominant color here is the intense red one. Source is http://www.vg.no/favicon.ico.

unexpected_palette