🌆 Image compression framework based on color-clustering
Branch: master
Clone or download
Latest commit dd31cff Mar 15, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
kmeans Initial push of algorithm and test Nov 12, 2016
tests Add reslt image Nov 12, 2016
README.md Update README.md Mar 14, 2017


Image Lossy Compression based on K-Means color clustering

Image compression framework based on color-clustering.


See demo/test.py:

import kmeans.kmeans_compression as kmeans

kmeans.compress(<path to the image>, <number of colors of the compressed output>)


Original image:

Compressed image:

Note: The approximate file size is measured without taking into account the overhead of the (colors,size) annotation.