Annotated edit history of
pnmdepth(1) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
pnmdepth |
|
|
2 |
!!!pnmdepth |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
SEE ALSO |
|
|
7 |
AUTHOR |
|
|
8 |
---- |
|
|
9 |
!!NAME |
|
|
10 |
|
|
|
11 |
|
|
|
12 |
pnmdepth - change the maxval in a portable anymap |
|
|
13 |
!!SYNOPSIS |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
__pnmdepth__ ''newmaxval'' |
|
|
17 |
[[''pnmfile''] |
|
|
18 |
!!DESCRIPTION |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
Reads a portable anymap as input. Scales all the pixel |
|
|
22 |
values, and writes out the image with the new maxval. |
|
|
23 |
Scaling the colors down to a smaller maxval will result in |
|
|
24 |
some loss of information. |
|
|
25 |
|
|
|
26 |
|
|
|
27 |
Be careful of off-by-one errors when choosing the new |
|
|
28 |
maxval. For instance, if you want the color values to be |
|
|
29 |
five bits wide, use a maxval of 31, not 32. |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
One important use of __pnmdepth__ is to convert a new |
|
|
33 |
format 2-byte-per-sample PNM file to the older |
|
|
34 |
1-byte-per-sample format. Before April 2000, essentially all |
|
|
35 |
raw (binary) format PNM files had a maxval less than 256 and |
|
|
36 |
one byte per sample, and many programs may rely on that. If |
|
|
37 |
you specify a ''newmaxval'' less than 256, the resulting |
|
|
38 |
file should be readable by any program that worked with PNM |
|
|
39 |
files before April 2000. |
|
|
40 |
!!SEE ALSO |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
pnm(5), ppmquant(1), ppmdither(1) |
|
|
44 |
!!AUTHOR |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
Copyright (C) 1989, 1991 by Jef Poskanzer. |
|
|
48 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.