Tag: image

0

Ubuntu image manipulation commands

Resize image (and convert)First, install imagemagick: 12sudo apt-get update sudo apt-get install imagemagick --fix-missing Image resize command:123convert source.jpg -resize 200x100 target.jpgconvert

0

Image Manipulation in Ruby

Resize an imageInstall RMagick12sudo apt-get install imagemagick libmagickwand-devgem install rmagick Code:123456789101112131415require 'rmagick'class ImageProcessor def self.resize(srcimg, tgtimg,