Lossless reduction for js, css, html, xml, jpg, png, gif
install ruby + rubygems
sudo gem install reduce
reduce -o public/image.gif
reduce public/javascripts/application.js > public/javascripts/application.min.js
-o, --overwrite overwrite file
-v, --version Show Version
-h, --help Show this.
reduced_data = Reduce.reduce('files/bla.js')
- uses web-based lossless image reduction service Smush.it / PunyPng through smusher
- uses YUI compressor to minify css/js
- uses htmlcompressor to minify html/xml
Michael Grosser
[email protected]
License: MIT