0

嗨,我在本教程中使用回形针和 plupload: http ://www.theroamingcoder.com/node/50

有用。但是,如果我尝试使用回形针设置缩略图,例如:

has_attached_file :data, 
    :styles => { :medium => "558x418>", :thumb => "60x82>" }

它不起作用。我收到此错误:

[paperclip] identify -format %wx%h '/tmp/stream20110209-26212-1l2obtp-0.png[0]' 2>/dev/null
[paperclip] convert '/tmp/stream20110209-26212-1l2obtp-0.png[0]' -resize "558x418>" '/tmp/stream20110209-26212-1l2obtp-020110209-26212-cl5lbg-0' 2>/dev/null
[paperclip] An error was received while processing: #<Paperclip::PaperclipError: There was an error processing the thumbnail for stream20110209-26212-1l2obtp-0>
[paperclip] identify -format %wx%h '/tmp/stream20110209-26212-1l2obtp-0.png[0]' 2>/dev/null
[paperclip] convert '/tmp/stream20110209-26212-1l2obtp-0.png[0]' -resize "60x82>" '/tmp/stream20110209-26212-1l2obtp-020110209-26212-1m6qvkj-0' 2>/dev/null
[paperclip] An error was received while processing: #<Paperclip::PaperclipError: There was an error processing the thumbnail for stream20110209-26212-1l2obtp-0

我该如何解决?

谢谢

4

2 回答 2

2

看起来您没有安装 Imagemagick!

http://www.imagemagick.org/script/index.php

如果我错了试试这个

has_attached_file :data, :styles => { :medium => ["558x418>", :png], :thumb => ["60x82>", :png] }
于 2011-02-09T13:13:52.330 回答
1

我不得不在plupload中禁用块

于 2011-02-09T14:23:31.960 回答