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.62k stars 1.32k forks source link

Incorrect color #30

Open vko-online opened 10 years ago

vko-online commented 10 years ago

when i try to get color of simple one color image, it returns a little bit different RGB array. original color rgb(0:159:60) #009F3C, colorThief color rgb(4:156:60) #049C3C a little difference, but would be good to have correct result

tyaslab commented 10 years ago

+1 for this issue

derek-skinner commented 9 years ago

+1 for me, too.

As a test, I uploaded a solid color jpeg using hex #313788. The color palette the tool came up with is hex #343c8c.

screen shot 2015-06-03 at 12 56 50 pm screen shot 2015-06-03 at 12 56 59 pm

AlfredJKwack commented 7 years ago

Color-Thief implements an underlying library to create the color palette. Your issue is actually with that library:olivierlesnicki/quantize/, not with Color-Thief itself.

Amurdel commented 4 years ago

bugfix var MMCQ = (function() { // private constants var sigbits = 8, // 5 by default