Note that there are some explanatory texts on larger screens.

plurals
  1. POImagemagick issue on Lion installed with Homebrew
    primarykey
    data
    text
    <p>I am trying to use the Paperclip gem on a Rails project so followed the docs and first installed Imagemagick using the Homebrew recipe.</p> <p>I added to my model my attachment</p> <pre><code>has_attached_file :screenshot </code></pre> <p>This worked OK and the file uploads functioned as expected</p> <p>I then wanted to add thumbnails to this, so again followed the docs and added to the model</p> <pre><code> has_attached_file :screenshot, :styles =&gt; { :medium =&gt; "300x300&gt;", :thumb =&gt; "100x100&gt;" } </code></pre> <p>At this point the uploads no longer worked</p> <p>I check the development logs and noticed this:</p> <pre><code>[32mCommand[0m :: identify -format %wx%h '/var/folders/ky/r5gsdhbn6yggbglsg727cc900000gn/T/stream20120302-60051-eh17n7.png[0]' [paperclip] An error was received while processing: #&lt;Paperclip::NotIdentifiedByImageMagickError: /var/folders/ky/r5gsdhbn6yggbglsg727cc900000gn/T/stream20120302-60051-eh17n7.png is not recognized by the 'identify' command.&gt; </code></pre> <p>At which point after some googling I thought it might be a problem with setting the default path as an environment variable</p> <pre><code>Paperclip.options[:command_path] = "/usr/local/bin/" </code></pre> <p>But I checked that this was correct using</p> <pre><code>which identify </code></pre> <p>And it returned this path</p> <pre><code>/usr/local/bin/identify </code></pre> <p>As expected</p> <p>I then tried to run identify from the command line as a test and got this error</p> <pre><code>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 </code></pre> <p>So I think my problem is not with paperclip, but rather the install of imageMagick via homebrew</p> <p>I've tried everything suggested including</p> <pre><code>brew update brew remove imagemagick brew install imagemagick </code></pre> <p>But it hasn't helped i'm running Lion 10.7.2 and have installed the developer tools.</p> <p>Any suggestions would be very much appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload