Color Quantization is a command-line utility for reducing the number of color of a PNG image. It's written in C and requires a C compiler to build.
To install Color Quantization run the following commands:
- git
- C compiler
- make
- libpng
git clone https://github.com/yesmanic/Color_Quantization
cd Color_Quantization
make
To use Color Quantization run the following command:
./quantize filename colors [MAX_ITERATIONS]
positional arguments:
filename the name of the png file
colors number of colors
optional arguments:
MAX_ITERATIONS maximum number of iterations
./quantize sky.png 20 50
Original | Output (20 colors) |
---|---|
![]() |
![]() |
Yesman - [email protected]
Project Link: https://github.com/yesmanic/Color_Quantization