I am getting the following error when uploading an image on the admin panel of spree (RoR e-commerce platform):
Paperclip::NotIdentifiedByImageMagickError in Admin/imagesController#create
/tmp/stream.4724.0 is not recognized by the 'identify' command.
Any ideas? Thanks.
Best Answer
It sounds like the wrong
identify
command (which is part of ImageMagick) is being called (or, perhaps, it isn't installed at all). Can you confirm the path to this command on your server using:Once you've determined where this command is installed (e.g.
/usr/local/bin
) then you can tell Paperclip about it by adding the following to your environment.rb (or production.rb etc) file:(this is for Paperclip 2.2 and above. If you're using an earlier version you should use
:image_magick_path
not:command_path
)