Few days ago I started getting the infamous error
This installation of RMagick was configured with ImageMagick 6.7.7 but ImageMagick 6.7.9-0 is in use. (RuntimeError)
This is not the first time I get this problem with RMagick and ImageMagick conflict, but it’s not always straight forward to solve. After little Googling I realized however that RMagick is not actively maintained these days, with last update being five months ago, while last time it was active before that was 2 years ago. Luckily, there is a new gem in town. MiniMagick is promising to be the replacement for RMagick. More actively updated, and uses much less memory than RMagick, by spawning the the ImageMagick command line mogrify.
So if you’re having this problem, or just want to migrate to MiniMagick, just change the gem file line:
gem ‘rmagick’, :require => ‘RMagick’
I’m Using CarrierWave. Will that work?
That was me asking actually. And the answer is yes. Quoting CarrierWave documentation:
Currently, the MiniMagick carrierwave processor provides exactly the same methods as for the RMagick processor.
All you should have to do is change the include command line in the uploader class to use CarrierWave::MiniMagick as opposed to CarrierWave::RMagick.
class AvatarUploader < CarrierWave::Uploader::Base include CarrierWave::MiniMagick process :resize_to_fill => [200, 200] end