JPEG and PNG compression processor for Paperclip.
paperclip-compression requires Paperclip gem, jpegtran and optipng libraries.
Add to your Gemfile
gem "paperclip-compression", "~> 0.1.1"
class User < ActiveRecord::Base
has_attached_file :avatar,
:styles => { :medium => "300x300>", :thumb => "100x100>" },
:processors => [:thumbnail, :compression]
end