@NiLuJe: I finished up my implementation of image quantization.
from calibre.utils.img import quantize_image
you can give it a predefined color palette if you dont want it to choose one for you, but doing that will have sub-optimal results. It includes dithering that can be turned off.
Last edited by kovidgoyal; 05-09-2016 at 10:25 PM.
|