Paperclip on Mac OSX Leopard development environment fails silently when processing images
I had a very intriguing error using Paperclip on my development environment.
In my case I had, Mac OSX Leopard, Passenger and ImageMagick installed using MacPorts.
Every time I asked ImageMagick to crop my images on my model, Paperclip would only save the original version of the image and fail to save the cropped copy.
The intriguing part was that examining the logs, nothing related to the error could be found.
After messing with it for a couple of hours and re-installing the ImageMagick a couple of times, I realized that paperclip was actually not finding my ImageMagick installation because MacPorts places it in a different place that it supposed to. ( actually MacPorts puts in the right place but just not the place Paperclip looks for it )
To find out where your installation of ImageMagick is located, type “which Magick-config” on your terminal window.
Mine was at “/opt/local/bin/Magick-config”.
To let paperclip know where it is, place the following line on your “rails_root/config/environments/development.rb”.
Notice that my path was “/opt/local/bin/Magick-config” and I added “/opt/local/bin”.
After that, restart your apache and everything should be working.
1 comment posted
23 March, 2009
By: Chris Adams
Thank you!
This is just what I was looking for!
His or Her website: click here...

