| Developer's Daily | Unix by Example |
| main | java | perl | unix | dev directory | web log |
|
pnmdepth - change the maxval in a portable anymap |
|
pnmdepth newmaxval [pnmfile] |
|
Reads a portable anymap as input. Scales all the pixel values, and writes out the image with the new maxval. Scaling the colors down to a smaller maxval will result in some loss of information. Be careful of off-by-one errors when choosing the new maxval. For instance, if you want the color values to be five bits wide, use a maxval of 31, not 32. |
|
pnm(5), ppmquant(1), ppmdither(1) |
|
Copyright (C) 1989, 1991 by Jef Poskanzer. |