Posts Tagged ‘images’

Ruby thumbnail generator

Ruby thumbnail generator is simple script which is ideal to use in your Ruby on Rails application to quickly generate thumbnails of any proportions. Just set width and height and get the image.
1. copy following code into /controllers/thumb_controller.rb
2. edit /config/routes.rb and add this line:map.connect “thumb/*specs”, :controller => “thumb”, :action => “index”
3. create directory /imagelib/ in [...]