Josh Benham's Image Optimization tool
A simple tool to optimize images for the web. Can use lossy and lossless optimizations or a combination of both.
Currently squish has two dependencies that will have to get installed seperately.
- imgmin to handle smart lossy image optimizations.
- image_optim to handle lossless image optimizations
# grab the repo $ git clone firstname.lastname@example.org:joshbenham/squish.git # change into the squish directory $ cd squish # install python requirements $ pip install --requirement requirements.txt # symlink it to your bin directory $ ln -s squish_r ~/bin/squish
Also make sure that your ~/bin directory is in your environment path.
In some versions of Ubuntu the
pip install line fails because PIL cannot be installed correctly.
You will need to follow link
to get it working correctly.
# on a file $ squish_r --lossless file.jpg # on a folder $ squish_r --lossless folder/
# on a file $ squish_r --lossy file.jpg # on a folder $ squish_r --lossy folder/