Skip to content

Repository files navigation

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
OriginalOutput (20 colors)
skysky-20-50

Contact

Yesman - yesman.choque@gmail.com

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

(back to top)

About

This repository contains an implementation of color quantization using Lloyd's algorithm.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages