From: Ravi Katta Date: 2008-08-27T22:51:32+09:00 Subject: resizing images in rails? Hi, how to resize the images in rails app? i want 400X300 size images to display in my app.But if user enter 600X800 how to resize the image without effect on clarity? now i am using this code image = Magick::Image.read("#{RAILS_ROOT}/public/gallery/#{review_img}").first selected_image = image.crop_resized(400,400) selected_image.write("#{RAILS_ROOT}/public/gallery/#{review_img}") But it extract height and width.i dont want to extract only resize the image. any suggestion are appreciated. thanks, ravi. -- Posted via http://www.ruby-forum.com/.