use paperclip upload image error:
Command :: identify -format %wx%h '/tmp/103120121106-20384-i7dnzy.png[0]' [paperclip] An error was received while processing: # < Paperclip::Errors::NotIdentifiedByImageMagickError: /tmp/103120121106-20384-i7dnzy.png is not recognized by the 'identify' command.>
I find identify:
joinall@nxbbs-server:/nxbbs$ type identify
identify is hashed (/usr/local/bin/identify)
joinall@nxbbs-server:/nxbbs$ convert logo: 2.jpg
joinall@nxbbs-server:/nxbbs$ identify 2.jpg
2.jpg GIF 640x480 640x480+0+0 8-bit sRGB 256c 31.7KB 0.000u 0:00.000
In config/environments/development.rb
Paperclip.options[:command_path] = "/user/local/bin"
In app/models/user.rb
attr_accessible :avatar
has_attached_file :avatar, :styles=> {:s120 => "120x120>",:s48 => "48x48>",:s16 => "16x16>"}
please help me ,I can not find the problem
development.rb
. Should be/usr/
not/user/
. – Adila