Custom Carrierwave Processors with Minimagick
Need to do some custom processing other than resize
using Carrierwave? Multiple commands in a single convert
line?
image = MiniMagick::Image.open("input.jpg")
image.combine_options do |c|
c.sample "50%"
c.rotate "-90>"
end
image.write "output.jpg"
Links
Written by Rafael Oliveira
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#