View Single Post
Old 05-09-2016, 11:23 AM   #260
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,449
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@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.
kovidgoyal is offline   Reply With Quote