mojombo / smusher forked from grosser/smusher
- Source
- Commits
- Network (9)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
1fa0615
commit 1fa061578b8e65114e4f2755e0e32bd6ca7b6754
tree 4f31d243f3a09512aeb90669cdc00c8695557d03
parent 613bfd4bd12b6e916023b62b4da11f4b7b82ec68
tree 4f31d243f3a09512aeb90669cdc00c8695557d03
parent 613bfd4bd12b6e916023b62b4da11f4b7b82ec68
smusher / README.markdown
Problem
- Images are too large because they are not optimized
- Users & your bandwidth is wasted for useless metadata
- local image optimization requires tons of programs / libaries / knowledge
Solution
- LOSSLESS size reduction (10-97% size reduction) in the cloud
- optmizes all images(jpg+png) from a given folder
Install
install ruby + rubygems + curl
sudo gem install grosser-smusher --source http://gems.github.com/
Usage
smusher /apps/x/public/images # optimize all jpg/png images, NOT gifs
smusher /apps/x/public/images/x.png # optimize a single image
smusher /apps/x/public/images/x.gif # !!optimize to smaller png, rename it yourself!!
Protection
Smusher makes .backup copies of any image before optimizing.
Any image that returns a failure code, is larger than before,
or is empty will be reverted.
Example
smusher /apps/ts/public/images
sushing /apps/rs/public/images/social/facebook_icon.png
2887 -> 132 = 4%
sushing /apps/rs/public/images/social/myspace_icon.png
3136 -> 282 = 8%
sushing /apps/rs/public/images/dvd/dvd_1.png
5045 -> 4 = 0%
reverted!
...
TODO
- use rest-client rather than curl
- windows support?
Author
Michael Grosser
grosser.michael@gmail.com
Hereby placed under public domain, do what you want, just do not hold me accountable...
