I'm using the colorthief original at the moment with the adjustment, that i've added the pixel count for all colors inside the palette.
Is it possible to add it here as well somehow?
Heres the sniped I used to make this work in the original python lib:
colorthief.py
...
class CMap(object):
"""Color map"""
def __init__(self):
self.vboxes = PQueue(lambda x: x['vbox'].count * x['vbox'].volume)
@property
def palette(self):
return dict((x, y) for x, y in self.vboxes.map(lambda x: (x['color'], x['vbox'].count))) <---- Read the count of the vbox
Thank you for that awesome port!
I'm using the colorthief original at the moment with the adjustment, that i've added the pixel count for all colors inside the palette. Is it possible to add it here as well somehow?
This feature would be awesome!
e.g.
Heres the sniped I used to make this work in the original python lib:
colorthief.py
best regards