I'm trying to use the Paperclip gem in a Rails project, so follow the docs and install Imagemagick first using the Homebrew recipe.
I added my application to my model
has_attached_file :screenshot
This worked fine and the file upload functioned as expected
Then I wanted to add thumbnails to it, so again followed the documents and added to the model
has_attached_file :screenshot, :styles => { :medium => "300x300>", :thumb => "100x100>" }
At this point, the download no longer works
I check the development logs and notice this:
[32mCommand[0m :: identify -format %wx%h '/var/folders/ky/r5gsdhbn6yggbglsg727cc900000gn/T/stream20120302-60051-eh17n7.png[0]' [paperclip] An error was received while processing:
At some point after some googling, I thought it might be a problem with setting the default path as an environment variable
Paperclip.options[:command_path] = "/usr/local/bin/"
But I checked that this is correct using
which identify
And he brought this way back
/usr/local/bin/identify
As expected
Then I tried to run the id from the command line as a test and got this error
dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib Referenced from: /usr/local/bin/identify Reason: Incompatible library version: identify requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0 Trace/BPT trap: 5
So, I think my problem is not with a clip, but with installing imageMagick through homebrew
I tried everything offered, including
brew update brew remove imagemagick brew install imagemagick
But that did not help me launch Lion 10.7.2 and install the tools for developers.
Any suggestions would be much appreciated.