Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.15 KB

README.md

File metadata and controls

46 lines (35 loc) · 1.15 KB

Color Quantization

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.

Installation

To install Color Quantization run the following commands:

Prerequisits

  • git
  • C compiler
  • make
  • libpng
git clone https://github.com/yesmanic/Color_Quantization
cd Color_Quantization
make

Usage

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

Examples

./quantize sky.png 20 50
Original Output (20 colors)
sky sky-20-50

Contact

Yesman - yesman.choque@gmail.com

Project Link: https://github.com/yesmanic/Color_Quantization

(back to top)