grosser / reduce
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (2)
- Wiki (1)
- Graphs
-
Branch:
master
reduce /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Feb 11 12:32:47 -0800 2009 | |
| |
README.markdown | Fri Oct 09 05:47:19 -0700 2009 | |
| |
Rakefile | Sun Nov 22 00:40:19 -0800 2009 | |
| |
VERSION | Fri Oct 09 05:37:44 -0700 2009 | |
| |
bin/ | Fri Oct 09 05:37:35 -0700 2009 | |
| |
lib/ | Fri Oct 09 05:37:35 -0700 2009 | |
| |
reduce.gemspec | Sun Nov 22 00:40:31 -0800 2009 | |
| |
spec/ | Fri Oct 09 05:37:35 -0700 2009 | |
| |
vendor/ | Wed Feb 11 12:32:47 -0800 2009 |
README.markdown
Lossless reduction for js, css, jpg, png, gif
Install
install ruby + rubygems
sudo gem install reduce
Usage
reduce -o public/image.gif
reduce public/javascripts/application.js > public/javascripts/application.min.js
Options
-o, --overwrite overwrite file
-v, --version Show Version
-h, --help Show this.
Ruby
reduced_data = Reduce.reduce('files/bla.js')
How does it work?
- uses web-based lossless image reduction service Smush.it / PunyPng through smusher
- uses YUI compressor to minify css/js
Author
Michael Grosser
grosser.michael@gmail.com
Hereby placed under public domain, do what you want, just do not hold me accountable...
