title: Paperclip PDF Upload Failing (with "is not recognized by the 'identify' command" on rails 3 production?
body: <p>I'm getting an error when I try to upload a PDF to production server using paperclip:</p>
  
  <p><em>pdf is not recognized by the 'identify' command</em></p>
  
  <p>My model looks like this: </p>
  
  <pre><code>has_attached_file :document, :styles =&gt; { :sm =&gt; {:geometry =&gt; "160x160&gt;", :format =&gt; :png} }
  </code></pre>
  
  <p>ImageMagick is installed, and configured with the proper path to <strong>identify</strong> in production.rb. Photos are uploaded to the same server during testing, and they are processed without error.</p>
  
  <p>I have found another post on StackOverflow here ( <a href="https://stackoverflow.com/questions/5545097/weird-paperclip-error-message">Weird paperclip error message</a> ) which both basically say the same thing- Remove :styles from the model, because imagemagick/identify can't create thumbnails from pdfs.</p>
  
  <p>But it works on my local machine. The pdf is uploaded and the png thumbnail is generated without error. I'm on a mac running passenger/apache/mysql (basically mirroring production as closely as possible).</p>
  
  <p>Any ideas why I'm getting the error on production, and how to fix? </p>
  
  <p>Thanks!
  --Mark</p>