Linux Commands Examples

A great documentation place for Linux commands


build a visual index of a bunch of anymaps

see also : pnmscale - pnmcat - pbmtext - ppmquant


pnmindex [-size N] [-across N] [-colors N] [-black] [-title T] [-quant|-noquant] pnmfile ...

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


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.


-size N

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 N

The number of thumbnails in each row. Default is 6.

-colors N

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.


This controls the color of the padding between the images; normally it’s white and the labels are black lettering on white background, but the -black flag reverses this.

-title title

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


Enables quanization (to the number of colors specified by -colors ). Quantization is on by default but you can disable it with -noquant.


See -quant.

see also

pnmscale , pnmcat , pbmtext , ppmquant , pnm


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

How can this site be more helpful to YOU ?

give  feedback