Skip to content

yesman-choque/ColorQuantization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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
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)

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published