If you have to crop or manipulate images with Ruby sometimes you may consider using ImageMagick , an open source library to handle image editing.
After having a lot of trouble installing ImageMagick via homebrew on OS X Mountain Lion and several workarounds from the internet not fixing the issue, I was able to fix it with this solution:
First, download the ImageMagick installer.
After installing ImageMagick, return to your terminal and adjust your
$PATH</code> to the newly installed ImageMagick bin</code> directory:
Next step is to publicize your system with the ImageMagick source headers by extending
Here we go:
Now it's time for the last step, installing the RMagick gem.
If you're Bundler based:
If you're working with rubygems directly:
gem install rmagick