Skip to content

Stack-of-Pancakes/median_cut_color_quantization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Median Cut Color Quantization using Python and Pillow

Installation

pip install -r requirements.txt

Usage

from PIL import Image
from median_cut import median_cut

img = Image.open('cogs.jpg')
colors = median_cut(img, 10)
img = Image.open('mountain.jpg')
colors = median_cut(img, 10)
img = Image.open('mario.jpg')
colors = median_cut(img, 10)

Output




About

Median cut color quantization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published