我正在尝试使用paperclip上传图片,但收到了此错误:
[paperclip] An error was received while processing: #<Paperclip::Errors::NotIden tifiedByImageMagickError: Paperclip::Errors::NotIdentifiedByImageMagickError>
我发现了几起与我相似的案件。 This和this。但我没有使用宝石可卡因,我的图像文件名是01.png(没有冒号)。 我不知道问题是什么。任何人吗?
顺便说一句,这是我的Gemfile:
gem 'rails', '3.1.3'
gem 'sass'
gem 'coffee-script'
gem 'uglifier'
gem 'devise', '2.1.2'
gem 'omniauth'
gem 'omniauth-facebook'
gem 'paperclip'
gem 'aws-s3'
gem 'aws-sdk'
gem 's3_swf_upload'
gem 'rails-i18n', '0.7.3'
group :development, :test do
gem 'sqlite3'
gem 'sqlite3-ruby', '1.3.2', :require => 'sqlite3'
gem 'better_errors'
gem 'binding_of_caller'
end
group :production do
gem 'pg'
end
gem "will_paginate", "~> 3.0.pre2"
gem "haml"
gem 'acts-as-taggable-on'
gem "friendly_id", "~> 3.2.1"
gem "simple_form"
gem 'web-app-theme', '>= 0.6.2'
gem "mobile-fu"
gem 'inherited_resources'
gem 'settingslogic'
gem 'recaptcha', :require => 'recaptcha/rails'
gem 'mechanize'
gem 'nokogiri'
编辑
它在paperclip配置中没有样式。
答案 0 :(得分:0)
现在有效。问题是,我没有在我的电脑上安装Imagemagick。现在,因为我安装并给出了路径。它就像一个魅力:)