rails + paperclip + plupload -


hi i'm using paperclip , plupload in tutorial: http://www.theroamingcoder.com/node/50

it works. if try set thumbnails paperclip like:

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

it doesn't work. receive error:

[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] error received while processing: #<paperclip::papercliperror: there error processing thumbnail 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] error received while processing: #<paperclip::papercliperror: there error processing thumbnail stream20110209-26212-1l2obtp-0 

how can solve it?

thanks

it looks don't have imagemagick installed!

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

if wrong try this

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

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -