Is there any smart way to convert 24-bit RGB .png image to static 8 or 16 colors images?
I've tried convert function from Pillow.
img = image.convert(mode='P', palette=adaptive, colors=16)
It works really nice. Unfortunately colors are different for each picture, so I can't make use of it.