Automatic lossless image compression
This is a simple script written in Python to compress images. Often, images aren’t as small as they could be.
Smooshy.py solves this problem by allowing you to compress all of those nasty extra bytes away without all the usual confusion surrounding fiddling around in the Save for Web Photoshop dialog.
In fact, Smooshy is basically just a script which takes advantage of the awesome [smush.it](http://smush.it/) – all your images are sent for compression over to smush.it – so [be careful you don’t send something you want to keep ultra-private](http://smush.it/faq.php).
It’s all safe
Smooshy creates backups of all your files while it’s sprinkling its pixie dust over your images. If something goes wrong, your originals won’t disappear into a black hole.
Also, if the resulting smooshed file is no smaller than the original, it won’t be used.
cd <directory of your choice> smooshy .
smooshy <as many files or directories as you'd like to smush here>
from smooshy import smoosher smoosher.Smoosher(<file path).smoosh() # Smooshes the file smoosher.recursive_smoosher([<file or directory>... ]) # Smooshes all files / all files recursively in directories
pip install git+git://github.com/josegonzalez/smooshy.git#egg=smooshy
pip install smooshy==1
Lots of people
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size smooshy-1.tar.gz (5.5 kB)||File type Source||Python version None||Upload date||Hashes View|