/paperclip-compression

image compression processor for Paperclip

Primary LanguageRuby

paperclip-compression

JPEG and PNG compression processor for Paperclip.

Requirements

paperclip-compression requires Paperclip gem, jpegtran and optipng libraries.

Installation

Add to your Gemfile

gem "paperclip-compression", "~> 0.1.1"

Usage

class User < ActiveRecord::Base
  has_attached_file :avatar,
                    :styles     => { :medium => "300x300>", :thumb => "100x100>" },
                    :processors => [:thumbnail, :compression]
end