I get an error when trying to upload a PDF file to a production server using paperclip:
PDF is not recognized by the ident command
My model looks like this:
has_attached_file :document, :styles => { :sm => {:geometry => "160x160>", :format => :png} }
ImageMagick is installed and configured with the correct path to identify in production.rb. Photos are uploaded to the same server during testing, and they are processed without errors.
I found another post in StackOverflow here ( Strange Paperclip Error Message ) that basically says the same thing - Delete: styles from the model because imagemagick / ident cannot create thumbnails from PDF files.
But it works on my local machine. PDF is loading, and the thumbnail png is generated without errors. I am on mac running passenger / apache / mysql (mostly mirroring production as close as possible).
Any ideas why I get a manufacturing error and how to fix it?
Thank! --Mark
source
share