title: Cover Paperclip::Errors::NotIdentifiedByImageMagickError
body: <p>I've updated my mac to 10.9.2 (mavericks) and my rails  / homebrew environment has fallen apart. I've battled through most of the issues but I'm stuck trying to get paperclip to use ImageMagick.  It worked last week but I have changed a few things getting other things to work.</p>
  
  <pre><code># gem file
  gem "paperclip", "~&gt; 4.1"
  
  #model
     has_attached_file     :cover,
     :styles =&gt; { :medium =&gt; "600x300&gt;", :thumb =&gt; "100x100&gt;" },
     :url =&gt; "/assets/providers/:id/:style/:basename.:extension",
     :path =&gt; ":rails_root/public/assets/providers/:id/:style/:basename.:extension"
  
    validates_attachment_content_type :cover, :content_type =&gt; ['image/jpeg', 'image/png']
    validates_attachment_size :cover, :less_than =&gt; 5.megabytes
    before_validation :clear_cover
  </code></pre>
  
  <p>I'm getting the error message: </p>
  
  <pre><code>Cover Paperclip::Errors::NotIdentifiedByImageMagickError
  </code></pre>
  
  <p>Since there where a lot of issues after the update with libraries not installed / found i tried to install ImageMagick again but got:</p>
  
  <pre><code>Warning: imagemagick-6.8.9-1 already installed
  </code></pre>
  
  <p>so i tried </p>
  
  <pre><code>brew uninstall imagemagick
  brew install imagemagick
  </code></pre>
  
  <p>which took suspiciously little time:</p>
  
  <pre><code>Already downloaded: /Library/Caches/Homebrew/imagemagick-6.8.9-1.mavericks.bottle.tar.gz
  ==&gt; Pouring imagemagick-6.8.9-1.mavericks.bottle.tar.gz
    /usr/local/Cellar/imagemagick/6.8.9-1: 1432 files, 22M
  </code></pre>
  
  <p>I've seen some suggestions around SO &amp; the web, none of which worked:</p>
  
  <pre><code>brew install ghostscript
  brew install libtool
  </code></pre>
  
  <p>Thanks to suggestion in comments I tried to run: </p>
  
  <pre><code>$ identify -format '%wx%h,1' 'test.jpg'
  </code></pre>
  
  <p>but got:</p>
  
  <pre><code>dyld: Library not loaded: /usr/local/lib/libltdl.7.dylib
  Referenced from: /usr/local/bin/identify
  Reason: image not found
  Trace/BPT trap: 5
  </code></pre>
  
  <p>I'm not sure what the best fix is? </p>
  
  <p>I read this <a href="https://stackoverflow.com/questions/13795469/imagemagick-identify-gives-dyld-library-not-loaded-usr-local-lib-libtiff-3-d">post</a> which adds a symlink to the library, but is that just a patch or a proper fix?</p>
  
  <p>I tried to do:</p>
  
  <pre><code>$ brew install libtool --universal
  </code></pre>
  
  <p>but got</p>
  
  <pre><code>Warning: libtool-2.4.2 already installed
  </code></pre>
  
  <p>I ran </p>
  
  <pre><code>$ brew install imagemagick --build-from-source
  </code></pre>
  
  <p>and after a few troubles got that to happen, but now we get a new error:</p>
  
  <pre><code>identify: no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/501.
  </code></pre>
  
  <p>It might be worth noting I get the exact same issue on my macbook &amp; my desktop.  </p>