robinboening / alchemy-image_optim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alchemy::ImageOptim

Build Status Coverage Status

This gem is an extension of the Alchemy CMS engine.

It optimizes the file size of the master image files uploaded to Alchemy by using the image_optim gem.

How does it work

After assigning an image to an Alchemy::Picture model (i.e. after uploading a new image) that image will be processed with lossless image optimization tools: PNGOUT, AdvPNG, Pngcrush, OptiPNG, JpegOptim, jpegrescan, jpegtran, and Gifsicle.

Binaries Installation

Thanks to toy: https://github.com/toy/image_optim#binaries-installation

Gem installation

Add this line to your application's Gemfile:

gem 'alchemy-image_optim'

And then execute:

$ bundle

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

License:MIT License


Languages

Language:Ruby 89.0%Language:HTML 8.6%Language:JavaScript 1.2%Language:CSS 1.1%