1

重複の可能性:
ペーパークリップ エラー

ImageMagick をインストールしました。コマンドラインで使用しようとすると、動作します。識別を使用できます。にあります/usr/bin。そして私の中で私development.rb

Paperclip.options[:command_path] = '/usr/bin/'

それでもうまくいきません。このエラーが発生し続けます。

Command :: identify -format %wx%h :file
[paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError: /tmp/stream20121130-6368-1c4xwb9-0.jpg is not recognized by the 'identify' command.>

これを機能させる方法がわかりません。私はすべてを試しました。私もこれを私のものに追加しようとしましたconfig/initializers/paperclip.rbが、うまくいきませんでした

require 'paperclip'

if RAILS_ENV == "development"
 Paperclip.options[:command_path] = '/usr/bin/'
end
4

0 に答える 0