Sprockets preprocessor to losslessly compress .png and .jpg images.
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 51 commits behind botandrose:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
Gemfile
README.md
Rakefile
sprockets-image_compressor.gemspec

README.md

Image compressor processor for Sprockets

Sprockets preprocessor to losslessly compress .png and .jpg images. Requires pngcrush and jpegoptim to be installed and in your PATH.

Integration with Rails 3.1+

Just add this gem to your Gemfile:

gem 'sprockets-image_compressor'

The gem ships with a Railtie which will automatically register the compressor preprocessors.

TODO

  • Detect missing pngcrush or jpegoptim installations
  • Provide configuration hooks
  • Tests

License

(MIT License) - Copyright (c) 2011 Micah Geisel