colorpalette-master

Scripts for generating a color palette out of an image


Keywords
python, color, palette, median, cut, quantization, PixPalette
License
MIT
Install
pip install colorpalette-master==0.0.9

Documentation

colorpalette-master

Scripts for generating a color palette out of an image, based on median cut algorithm. Used in my college project PixPalette.

The tasks I had were:

  • To generate a palette out of a given picture.
  • To write a wrapper for my script, which will compose my palette with the given picture into a single image.

For that I've created a module called "colorpalette-master":

Install it via pip:

pip install colorpalette-master

Install it manually:

  • Copy the folder cpmaster into Lib\side-packages of your python enviroment.
  • Install additional packages with:
pip install scikit-image==0.19.3
pip install numpy==1.21.6
pip install pillow==9.4.0
pip install image-decoding-algorithms

After, import it into the script using import cpmaster *.

Compiling requirements:

  • Scikit-image (version '0.19.3' or newer)
  • Numpy (version '1.21.6' or newer)
  • Pillow (version '9.4.0' or newer)

Running requirements:

  • Python 3.7.7 or newer (code actually uses some deprecated syntax in newer versions of Python, so not sure about the last part)

Using the package:

  • Check the ____MiniDocumentation.md file for my brief documentation on methods
  • Write me an email, if there are any questions left - superavb222@gmail.com