Compress images using Singular Value Decomposition!
This is a really inefficient way to compress images, but it gets some interesting results once you're done with it.
compressor.py
the main python code, relies on python, PIL, and numpyshell.nix
a nix environment, will install python, PIL and numpy for you if you're a nix usermax.jpg
a sample picture of my teddy rabbit Max and his friend Alice the pigresult.jpg
a compressed version of max.
To run, simply:
python compress.py max.jpg 50
where the last number is the level of compression you want. You can go from 1 to min(length,width).