1Pamtopnm User Manual(0)                                Pamtopnm User Manual(0)
2
3
4

NAME

6       pamtopnm - convert PAM image to PBM, PGM, or PPM
7
8

SYNOPSIS

10       pamtopnm
11
12       [-assume]
13
14       [pnmfile]
15
16       Minimum  unique abbreviation of option is acceptable.  You may use dou‐
17       ble hyphens instead of single hyphen to denote options.   You  may  use
18       white space in place of the equals sign to separate an option name from
19       its value.
20
21

DESCRIPTION

23       This program is part of Netpbm(1).
24
25       pamtopnm reads a PAM image as input and  produces  an  equivalent  PBM,
26       PGM, or PPM (i.e. PNM) image, whichever is most appropriate, as output.
27
28       pamtopnm  assumes the PAM image represents the information required for
29       a PBM, PGM,  or  PPM  image  if  its  tuple  type  is  'BLACKANDWHITE',
30       'GRAYSCALE',  or  'RGB'  and  its depth and maxval are appropriate.  If
31       this is not the case, pamtopnm fails.
32
33       However, you can override the tuple type requirement with  the  -assume
34       option.
35
36       As  with  any Netpbm program that reads PAM images, pamtopnm also reads
37       PNM images as if they were PAM.  In  that  case,  pamtopnm's  functions
38       reduces  to  simply  copying  the input to the output.  But this can be
39       useful in a program that doesn't know whether its input is PAM  or  PNM
40       but needs to feed it to a program that only recognizes PNM.
41
42

OPTIONS

44       -assume
45              When  you specify -assume, you tell pamtopnm that you personally
46              vouch for the fact that the tuples  contain  the  same  data  as
47              belongs  in  the channels of a PBM, PGM, or PPM file.  The depth
48              must still conform, though, so to truly force a conversion,  you
49              may  have  to  run  the  input through pamchannel first.  But be
50              careful with -assume.  When you -assume, you make an -ass  of  u
51              and me.
52
53
54
55

SEE ALSO

57       pbmtopgm(1),  pamditherbw(1), pgmtoppm(1), ppmtopgm(1), pam(1), pnm(1),
58       pbm(1), pgm(1), ppm(1)
59
60
61

HISTORY

63       pamtopnm was new, along with the PAM  format,  in  Netpbm  9.7  (August
64       2000).
65
66
67
68netpbm documentation            03 August 2000         Pamtopnm User Manual(0)
Impressum