search for: resize_dimension

Displaying 1 result from an estimated 1 matches for "resize_dimension".

2006 Jan 11
0
File_column : how can I resize/convert/whatever an image according to form-submitted values?
...user to ask for certain transformations of the image before saving it - most importantly, to resize it. Now, how can I make an instance of FileColumn enabled model process these imagemagick instructions? My model looks looks somewhat like : class Image < ActiveRecord::Base attr_accessor :resize_dimension, :resize_to before_save :resize_image file_column :path, :versions => { "thumbnail" => "100x100>" } private def resize_image # stuff that processes the image with the form-provided values [:resize_dimension] (can be "w" (width) or "h" (h...