Skip to content

Loading…

Photo is not recognized by the 'identify' command. #33

Open
asisin1 opened this Issue · 2 comments

3 participants

@asisin1

I'm migrating from Active Record to Mongoid, and this paperclip stuff used to work fine.

I've defined this in my mongoid document:

has_mongoid_attached_file :photo,
:styles => {
:thumb => "60x60",
:small => "100x100",
:medium => "300x200",
:large => "600x400"
},
:storage => :s3,
:s3_credentials => "#{Rails.root}/config/s3.yml",
:path => "#{Rails.env}/merc_:attachment/:id/:style.:extension",
:url => ":s3_alias_url",
:bucket => '%^&*&^'

I have the rmagick gem installed and also have the command_path pointing to where the various imagemagick commands are.

I'm using Unicorn as my webserver, and I have verified that identiy and convert are available by putting this in my view:

<%= which convert %>
<%= echo $PATH %>

But alas, when I try to upload the image I get :

Photo /tmp/qdoba20121005-27609-1m3kq9c.jpg is not recognized by the 'identify' command.
Photo /tmp/qdoba20121005-27609-1m3kq9c.jpg is not recognized by the 'identify' command.
Photo /tmp/qdoba20121005-27609-1m3kq9c.jpg is not recognized by the 'identify' command.
Photo /tmp/qdoba20121005-27609-1m3kq9c.jpg is not recognized by the 'identify' command.

seemingly one for every one of the styles I have defined.

Help!

@luxerama

I had a similar problem recently. Mine was because of a broken relationship with cocaine. See thoughtbot/paperclip#1077

@nadeemyasin61

+1. Have same problem on heroku
errors while processing Company ID 17:
Image /tmp/21241v2-max-450x45020130912-2-1lxkiad.jpg is not recognized by the 'identify' command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.