patolette: A PCA-Based Color Quantization and Dithering Library
2025-06-10
patolette is a C/Python library for color quantization and dithering, implementing a weighted variant of Xiaolin Wu's PCA-based quantizer. Key features include support for CIEL*u*v* and ICtCp color spaces, optional saliency map weighting for visually prominent areas, and optional KMeans refinement. While still under development and lacking a PyPI package, it's usable now. Manual installation is required, with AVX instruction set support for performance boosts. The library doesn't handle image decoding/encoding; users must handle that themselves.
Development
color quantization