I'm using paperclip with Rails 3.1. When I add the image, it shows me the original size but doesn't show me thumb or medium sizes:
Here is what I have in my view:
<%= image_tag @image.avatar.url(:thumb) %>
<%= image_tag @image.avatar.url(:medium) %>
image.rb
has_attached_file :avatar, :whiny => false, :styles => { :medium => "300x300>", :thumb => "100x100>" }
UPDATE:
Here is the error I'm getting with :whiny => true
Command :: identify -format %wx%h '/var/folders/54/txjcl9l130j6dq73r37hf2c00000gn/T/stream20111213-9180-1plu1me.png[0]' [paperclip] An error was received while processing: #
Command :: identify -format %wx%h '/var/folders/54/txjcl9l130j6dq73r37hf2c00000gn/T/stream20111213-9180-1plu1me.png[0]' [paperclip] An error was received while processing: # Rendered images/new.html.erb within layouts/application (4.0ms)
:whiny => false
, there could very likely be an exception occurring during the thumbnail creation process. Try setting:whiny => true
and post any errors you encounter. My guess: image magic isn't installed, or Rails doesn't know where to find it because yourpath
isn't set. – Greg W