+1 for the paperclip recommendation, but you also need some image
processing package installed and available... ImageMagick, or something
similar.
Then it's almost as simple as:
class Image < ActiveRecord::Base
has_attachment :content_type => ['image/jpeg', 'image/png'],
:storage => :file_system,
:max_size => 500.kilobytes,
:resize_to => '800x600>',
:thumbnails => { :thumb => '100x100>'}
end
in your model. There are plenty of tutorials out there available via
Googling.
--
Posted via http://www.ruby-forum.com/.