I\'m creating a little photo sharing site for our home\'s intranet, and I have an upload feature, which uploads the photo at original size into the database. However, I also
I tried following way. Its working fine. I hope it will help to some one.
1.add following gem in Gemfile:
gem "ImageResize", "~> 0.0.5"
2.run bundle
3.use this in controller function:
require 'rubygems'
require 'ImageResize'
#input_image_filename, output_image_filename, max_width, max_height
Image.resize('big.jpg', 'small.jpg', 40, 40)