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

Closed
asisin1 opened this Issue Oct 5, 2012 · 4 comments

Comments

Projects
None yet
4 participants
@asisin1

asisin1 commented Oct 5, 2012

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

This comment has been minimized.

Show comment
Hide comment
@luxerama

luxerama Nov 19, 2012

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

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

@nadeemyasin61

This comment has been minimized.

Show comment
Hide comment
@nadeemyasin61

nadeemyasin61 Sep 12, 2013

+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.

+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.

@tilsammans

This comment has been minimized.

Show comment
Hide comment
@tilsammans

tilsammans Aug 10, 2016

Collaborator

This does not seem to be related to mongoid-paperclip but to paperclip itself.

If you feel that this issue is caused by mongoid-paperclip then please clarify and I can investigate.

Collaborator

tilsammans commented Aug 10, 2016

This does not seem to be related to mongoid-paperclip but to paperclip itself.

If you feel that this issue is caused by mongoid-paperclip then please clarify and I can investigate.

@tilsammans tilsammans closed this Aug 10, 2016

@nadeemyasin61

This comment has been minimized.

Show comment
Hide comment
@nadeemyasin61

nadeemyasin61 Aug 10, 2016

@tilsammans yes, it was figured out not to be related to mongoid-paperclip.

@tilsammans yes, it was figured out not to be related to mongoid-paperclip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment