ImageCompressor in Haskell based on K-Means algorithm
All automatic tests of Epitech are passed at 100%
Via stack
$ stack build --copy-bins --local-bin-path ./
Via Makefile (with stack)
$ make
To compress image: ./compress.py image.[jpg/png/bmp] nbClusters convLimit
$ ./compress.py images/mona-lisa.jpg 10 0.2
Convert image in pixels...
-> Convert image in pixels done in 0.241s
Compress pixels...
-> Compress pixels done in 2.52s
Pixels image in image...
-> Pixels image in image done in 0.563s
-> All done in 3.325s
Output file: images/compressed-mona-lisa.jpg
~ 2.5s of compute
~ 2.8s of compute
~ 3s of compute
- Up ot 2Go of ram used for compression
~ 45s of compute
~ 60s of compute
~ 120s of compute
- Up ot 13Go of ram used for compression
~ 10m of compute
~ 12m of compute
~ 18m of compute











