color-thief
color-thief copied to clipboard
The error in determining the dominant color
If I use picture above, dominant color which your script returns is rgb(35, 31, 48), but it's obviously the dominant color is white.
How did you get a color? I get "TypeError: o.palette is not a function" on that image.