Expand description
Quantizes unpaletted pixel data to paletted data by quantizing the colors into a palette.
Structs§
- Quantizer
- Configuration options regarding behavior of quantization.
Functions§
- quantize_
lossy - Quantizes an image using the NeuQuant algorithm.
- quantize_
simple - Quantize an image with under 256 colors, panics otherwise. Returns
(palette, image_data).