NOTE: If you are on windows you can leave now.
- LOSSLESS size reduction (10-97% size reduction) in the cloud
- optmizes all images(jpg+png) from a given folder
Install:
sudo gem install smusher
#if you do not have get ruby + rubygems first
See Install instructions
Usage:
smusher /my_app/public/images
smusher LOCAL_FOLDER or IMAGE
Output:
smushing /my_app/public/images/cart_small.png
3322 -> 537 = 16%
smushing /my_app/public/images/pro_icon.png
3022 -> 260 = 8%
smushing /my_app/public/images/message.png
2898 -> 138 = 4%
smushing /my_app/public/images/logo.png
6799 -> 9677 = 142%
reverted!
Protection
As you see images that get larger or empty or cannot be processed are reverted.
Is this script still valid? If it’s it’ll serve perfect for my purposes
give it a try 😉
Hi Michael,
Thanks for the great gem. It’s working on the local machine but when I try it in my server I get a “404 not found” error.
Any insights?
Regards,
Suhas
no idea, should work from any machine, make sure its the latest version