Additional processing support for MiniMagick and RMagick
Latest commit bae9804 Apr 2, 2016 @fxposter Merge pull request #8 from sunny/auto-orient
Add `auto_orient` processor to README
Failed to load latest commit information.
lib v1.1.0 Oct 3, 2014
spec Rename auto_orient! to auto_orient to be consistent with other proces… Oct 3, 2014
.gitignore Add integration tests Jan 21, 2014
.rspec Add integration tests Jan 21, 2014
.travis.yml Fix jruby Jan 21, 2014
Gemfile initial commit May 17, 2012
LICENSE initial commit May 17, 2012
Rakefile Add integration tests Jan 21, 2014


Travis CI

Additional processing support for MiniMagick and RMagick. These are processors that I've been using in multiple projects so I decided to extract those as a gem.


Add this line to your application's Gemfile:

gem 'carrierwave-processing'

And then execute:

$ bundle

Or install it yourself as:

$ gem install carrierwave-processing


This gem add several useful methods to CarrierWave processing RMagick and MiniMagick modules: quality, strip, blur and colorspace. To use those, you should include specified module (RMagick or MiniMagick) into your uploader and use processors:

class AvatarUploader < CarrierWave::Uploader::Base
  include CarrierWave::RMagick
  include CarrierWave::Processing::RMagick

  process :strip # strip image of all profiles and comments
  process :resize_to_fill => [200, 200]
  process :quality => 90 # Set JPEG/MIFF/PNG compression level (0-100)
  process :convert => 'png'
  process :colorspace => :rgb # Set colorspace to rgb or cmyk
  process :blur => [0, 8] #reduce image noise and reduce detail levels [radius,sigma]
  process :auto_orient # Rotate the image if it has orientation data

  def filename
    super.chomp(File.extname(super)) + '.png'


  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