Reduce your Rails RAM Usage with MiniMagick

If your Rails app uses Rmagick to resize images on shared hosting you may have had your app shut down because of a RAM spikes (the spike can be > 40mb when processing an image > 2mb).

MiniMagick to the rescue!

MiniMagick accesses ImageMagick directly, similar to exec(’my ImageMagick command’); in PHP. Since shared hosts are looking for Rails spikes not ImageMagick spikes your app won’t get killed. If you use Rick Olson’s excellent attachement_fu plug-in MiniMagick support is baked right in.

This entry was posted in Ruby, Ruby on Rails. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word