I need to write some ruby script which will help me with big image files. I know basics of imagemagick and rmagick library(ruby), but till now I was doing generally simple things (thumbnailing, adding watermarks etc.) Now I want to cut file with example resoultion 3000/1000px into ten smaller images (3000/100 px). Is it possible? I have no idea which method to use.
Share
How about
cropping the input image once for each of the output images:More generally (but still assuming the Y resolution is divisible by the number of slices):
http://www.imagemagick.org/RMagick/doc/image1.html#crop