pamdice - slice a Netpbm image into many horizontally and/or vertically
pamdice
-outstem=filenamestem
[-width=width]
[-height=height]
[-hoverlap=hoverlap]
[-voverlap=voverlap]
[-verbose]
[filename]
You can use the minimum unique abbreviation of the options. You can use two hyphens instead of one. You can separate an option name from its value with white space instead of an equals sign.
This program is part of netpbm(1).
pamdice reads a PAM, PBM, PGM, or PPM image as input and splits it horizontally and/or vertically into equal size pieces and writes them into separate files as the same kind of image. You can optionally make the pieces overlap.
See the -outstem option for information on naming of the output files.
The -width and -height options determine the size of the output pieces.
pnmcat can rejoin the images.
One use for this is to make pieces that take less computer resources than the whole image to process. For example, you might have an image so large that an image editor can't read it all into memory or processes it very slowly. With pamdice, you can split it into smaller pieces, edit one a time, and then reassemble them.
Another use for this is to print a large image in small printer-sized pieces that you can glue together. ppmglobe does a similar thing; it lets you glue the pieces together into a sphere.
This option was new in Netpbm 10.23 (July 2004).
This option was new in Netpbm 10.23 (July 2004).
Before Netpbm 10.29 (August 2005), there was a limit of 100 slices in each direction.