Forum: Ruby on Rails Attachment_fu not resizing.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
525e0c75f4f5c1d0ab0b6cc91575b74f?d=identicon&s=25 Emil Kampp (emuen)
on 2007-06-29 13:46
Hi there.

Im usig attachement_fu for uploading my files to the site. I have
followed in parts the guide at:
It is creating the thumbnails ok, but it is not resizing them as it

I have used the following code:
has_attachment  :storage => :file_system,
                  :max_size => 500.megabytes,
                  :resize_to => [300, 300],
                  :thumbnails => { :thumb => [200, 200], :icon => [100,
100], :tiny => [50, 50] },
                  :processor => :MiniMagick, # attachment_fu looks in
this order: ImageScience, Rmagick, MiniMagick
                  :path_prefix => "/public/uploads/"

validates_as_attachment # ok two lines if you want to do validation, and
why wouldn't you?

I have also tried using it width :thumb => "200x200>" this did not work
wither. What am i doing wrong?

 - Emil
525e0c75f4f5c1d0ab0b6cc91575b74f?d=identicon&s=25 Emil Kampp (emuen)
on 2007-06-29 13:58
And another thing, it doesn't save the width and height attributes into
the database.
D67b951d3ef8e9d79b4c62e3a3c52b4e?d=identicon&s=25 Cristhian Boujon (overflow012)
on 2010-07-13 05:03
Hi! I've the same problem. Could you fix it?
This topic is locked and can not be replied to.