Skip to content

mdomnik/ImageColorQuantizer

Repository files navigation

Image Color Quantizer (Windows 6.1 or Later)

A fast and simple command-line tool written in C# to quantize an image into a reduced color palette using K-Means clustering.

Cow Banner
📷 Photo by Ave Calvar Martinez


Features

  • Fast and efficient color quantization
  • Reduces colors using K-Means clustering
  • Automatically ignores fully transparent pixels
  • Supports common image formats: PNG, JPG, etc.
  • Outputs a clean version with a defined number of dominant colors
  • Easy to run, customize, and extend from the command line

Usage

dotnet run -- Images/<FileName> (optional: <NumberOfColors>)

Installation

  1. Clone the repository:
    git clone https://github.com/mdomnik/ImageColorQuantizer.git
  2. Navigate to the project directory:
    cd ImageColorQuantizer
  3. Restore dependencies:
    dotnet restore .\Image_ColorQuantizer.sln
  4. Run the tool:
    dotnet run -- Images/input.png 4

Showcase

Below is an example of the tool applied to a colorful image, showing different quantization levels side by side:

Bird Banner 📷 Photo by Alex P: https://www.pexels.com/photo/blue-and-yellow-macaw-perched-on-twig-2078772/

About

Windows ImagetoColorQuantizer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages