Last Updated: February 25, 2016
·
2.119K
· rafaelcgo

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