Sha256: 1fd09cfd3842521d2871a673a2704a579208ef2c728181110dadb99c0ad91579

Contents?: true

Size: 952 Bytes

Versions: 1

Compression:

Stored size: 952 Bytes

Contents

# Image compressor processor for Sprockets

Sprockets preprocessor to losslessly compress .png and .jpg images using [pngcrush](http://pmt.sourceforge.net/pngcrush/) and [jpegoptim](http://www.kokkonen.net/tjko/projects.html).

## Integration with Rails 3.1+

Just add this gem to your Gemfile:

```ruby
gem 'sprockets-image_compressor'
````

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

## Now with vendored binary fallbacks / Heroku support!

If the environment doesn't have pngcrush and/or jpegoptim installed, the gem will fall back on binaries packaged with the gem. Currently, only 32bit and 64bit linux binaries are included. Pull requests welcome for other architectures!

## TODO

* Provide configuration hooks
* Test Railtie

## Credits

* Thanks to @nhogle for help with compiling and packaging the jpegoptim and pngcrush binaries

## License

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sprockets-image_compressor-0.2.0 README.md