Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';t让ImageMagick使用回形针处理上传的图像_Imagemagick_Paperclip_Archlinux - Fatal编程技术网

Can';t让ImageMagick使用回形针处理上传的图像

Can';t让ImageMagick使用回形针处理上传的图像,imagemagick,paperclip,archlinux,Imagemagick,Paperclip,Archlinux,上载图像时,我遇到以下错误: [paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError: /tmp/stream20091218-7204-1fuv2j1-0 is not recognized by the 'identify' command.> 在将/usr/local/bin添加到路径之前,我会得到一个错误,然后我将看到ImageMagic

上载图像时,我遇到以下错误:

[paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError: /tmp/stream20091218-7204-1fuv2j1-0 is not recognized by the 'identify' command.>
在将/usr/local/bin添加到路径之前,我会得到一个错误,然后我将看到ImageMagick规范。不幸的是,当直接将文件上载到服务器时,更改路径似乎没有任何效果

在设置PaperClip通过以下方式查找图像库的位置时,我也未成功:

config.after_initialize do
  Paperclip.options[:command_path] = '/usr/local/bin/'
end
关于如何配置事物以允许imagemagick处理图像的任何线索


感谢您的帮助。

编译IM时,png和jpeg代理不可用。下载并安装代理后,再重新编译IM,现在一切正常

config.after_initialize do
  Paperclip.options[:command_path] = '/usr/local/bin/'
end