require 'RMagick'
Magick::ImageList.new('image.jpg').write('image.tif')
Ok, that is way too short. Let's add crop operation:
(I think I can add the first example to Cotta)
image = Magick::ImageList.new('image.jpg')
image.crop(0, 0, 64, 64).write('image.tif')
No comments:
Post a Comment