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>)
Note: The approximate file size is measured without taking into account the overhead of the (colors,size) annotation.