# pamdice(1) - man - phpMan

[pamdice(1)](https://www.chedong.com/phpMan.php/man/pamdice/1/markdown)                             General Commands Manual                            [pamdice(1)](https://www.chedong.com/phpMan.php/man/pamdice/1/markdown)



## NAME
       pamdice - slice a Netpbm image into many horizontally and/or vertically


## SYNOPSIS
       **pamslice** **-outstem=**_filenamestem_ [**-width=**_width_] [**-height=**_height_] [**-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.


## DESCRIPTION
       Reads  a PAM, PBM, PGM, or PPM image as input.  Splits it horizontally and/or vertically into
       equal size pieces and writes them into separate files as the same kind of image.

       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.


## OPTIONS
### -outstem=
              This option determines the names of the output files.  Each output file is named _file__‐
              _namestem_y_x_**.**_type_  where _filenamestem_ is the value of the **-outstem** option, _x_ and y are
              the horizontal and vertical locations, respectively, in the input image of the  output
              image, zero being the leftmost and top, and _type_ is **.pbm**, **.pgm**, **.ppm**, or **.pam**, depend‐
              ing on the type of image.


### -width=
              gives the width in pixels of the output images.  The rightmost pieces are smaller than
              this if the input image is not a multiple of _width_ pixels wide.


### -height=
              gives  the  height in pixels of the output images.  The bottom pieces are smaller than
              this if the input image is not a multiple of _height_ pixels high.


### -verbose
              Print information about the processing to Standard Error.


## SEE ALSO
       [**pamcut**(1)](https://www.chedong.com/phpMan.php/man/pamcut/1/markdown), [**pnmcat**(1)](https://www.chedong.com/phpMan.php/man/pnmcat/1/markdown), [**pgmslice**(1)](https://www.chedong.com/phpMan.php/man/pgmslice/1/markdown), [**pnm**(5)](https://www.chedong.com/phpMan.php/man/pnm/5/markdown)


## AUTHOR
       put by Bryan Henderson in the public domain in 2001



                                           31 January 2001                                [pamdice(1)](https://www.chedong.com/phpMan.php/man/pamdice/1/markdown)
