If you ever need to resize an image using Ruby, and you are familiar with Linux command convert from Imagegick. You may use RMagic