views:

420

answers:

2
[paperclip] identify '-format' '%wx%h' '/tmp/stream,3360,1.jpeg[0]' 2>/dev/null
[paperclip] An error was received while processing: #<Paperclip::CommandNotFoundError: Paperclip::CommandNotFoundError>
[paperclip] identify '-format' '%wx%h' '/tmp/stream,3360,1.jpeg[0]' 2>/dev/null
[paperclip] An error was received while processing: #<Paperclip::CommandNotFoundError: Paperclip::CommandNotFoundError>

This is the error in my log tail. Image Paperclip::CommandNotFoundError is what it kicks in the flash error. this is only happening with my deploy, and not with the my dev. anyone had this problem before?

A: 

Error says that command identify is not found. Can you run it from command line? If you do, where's the binary located? In my case it's /opt/local/bin, you can check by type identify. Then add a path to configuration file.

Paperclip.options[:command_path] = "PATH_TO_BINARY"
Nikita Rybak
+2  A: 

Paperclip uses Imagemagik for image manipulation. The error says it can't find indentify which is an imagemagik command. Make sure your command path to ImageMagik is set properly in all your environments (production, staging, etc):

Paperclip.options[:command_path] = '/path' 
nicholasklick
yea... New server, forgot we hadn't put imagemagik on yet.
jtmkrueger
Been bitten by that a few times...
nicholasklick