color-thief icon indicating copy to clipboard operation
color-thief copied to clipboard

Incorrect color

Open vko-online opened this issue 10 years ago • 4 comments

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

vko-online avatar Apr 18 '14 10:04 vko-online

+1 for this issue

tyaslab avatar Jun 30 '14 04:06 tyaslab

+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

derek-skinner avatar Jun 03 '15 19:06 derek-skinner

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.

AlfredJKwack avatar Jul 22 '17 11:07 AlfredJKwack

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

Amurdel avatar Apr 08 '20 17:04 Amurdel