quantize

How to use`kmeans` parameter in Pillow Image.quantize?

How to use`kmeans` parameter in Pillow Image.quantize? Question: Doc page for PIL.Image.quantize gives: Image.quantize(colors=256, method=None, kmeans=0, palette=None, dither=1) colors – The desired number of colors, <= 256 kmeans – Integer https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.quantize How to use this kmeans parameter? If kmeans is "number of clusters to use", isn’t that going to be the same value as colors? …

Total answers: 1