# phpman > man > pnmindex(1)

> **TLDR:** Build a visual index of multiple PNM images.
>
- Produce an image containing thumbnails of the specified images in a grid:
  `pnmindex {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}`
- Specify the size of the (quadratic) thumbnails:
  `pnmindex {{-s|-size}} {{50}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}`
- Specify the number of thumbnails per row:
  `pnmindex {{-a|-across}} {{10}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}`
- Specify the maximum number of colors in the output:
  `pnmindex {{-c|-colors}} {{512}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}`

*Source: tldr-pages*

---

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



## NAME
       pnmindex - build a visual index of a bunch of anymaps

## SYNOPSIS
       **pnmindex** [**-size** _N_] [**-across** _N_] [**-colors** _N_] [**-black**] [**-title** _T_] [**-quant**|**-noquant**] _pnmfile_ ...


## DESCRIPTION
       **pnmindex** creates an index image containing thumbnail (small) versions of a bunch of PNM files
       you supply.

       **pnmindex** labels each thumbnail and, optionally, contains a title.



## OPTIONS
### -size
              The size of each thumbnail.  The image is scaled to fit maximally inside a _N_ x _N_ pixel
              box without changing its aspect ratio.  Default is 100.

### -across
              The number of thumbnails in each row.  Default is 6.

### -colors
              The maximum number of colors allowed in the overall image.  If it would otherwise have
              more colors than these, **pnmindex** quantizes the result.  The default is 256.

              However, this value is meaningless if you specify the **-noquant** option.

### -black
              labels are black lettering on white background, but the **-black** flag reverses this.

### -title
              Specifies a title top place at the top of the image.  Default is no title.

### -quant -colors
              on by default but you can disable it with **-noquant.**

### -noquant
              See **-quant**.


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


## AUTHOR
       Copyright (C) 1991 by Jef Poskanzer.  **-title** and **-noquant** added 2000 by John Heidemann.



                                           9 January 1991                                [pnmindex(1)](https://www.chedong.com/phpMan.php/man/pnmindex/1/markdown)
