Skip to content

🌆 Image lossy-compression framework based on color-clustering

Notifications You must be signed in to change notification settings

dshahrokhian/kmeans-image-compression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Image Lossy Compression based on K-Means color clustering

Image compression framework based on color-clustering.

Usage

See demo/test.py:

import kmeans.kmeans_compression as kmeans

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

Results:

Original image:

Compressed image:

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

About

🌆 Image lossy-compression framework based on color-clustering

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages