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

NAME

6       pamtotga - convert a Netpbm image to a TrueVision Targa file
7
8

SYNOPSIS

10       pamtotga [-mono|-cmap|-rgb] [-norle] [pamfile]
11
12
13

DESCRIPTION

15       This program is part of Netpbm(1).
16
17       pamtotga  reads  a  PBM, PGM, PPM, or PAM image as input and produces a
18       TrueVision Targa file as  output.   The  PAM  image  may  be  either  a
19       BLACKANDWHITE, GRAYSCALE, RGB, or RGB_ALPHA image.
20
21       To  create a TGA image with transparency (i.e. with an alpha mask), use
22       RGB_ALPHA PAM input.  Some Netpbm programs that  generate  images  with
23       alpha  masks  generate  them in that format.  For another way to create
24       the proper input stream, see pamstack(1).
25
26       It is unclear that anything  except  pamtotga  knows  about  TGAs  with
27       transparency.   The  history  behind  this  feature  of pamtotga is not
28       clear.  The format pamtotga produces is simply the same as an  ordinary
29       RGB TGA image except with a 4th plane added for transparency.  The Pix‐
30       elSize field of the TGA header specifies 32 bits instead of 24 and  the
31       raster  has  an  extra  byte added to each pixel, at the tail end.  The
32       value of that byte has the same meaning as in a PAM image  with  maxval
33       255.
34
35

OPTIONS

37       All  options  can  be abbreviated to their shortest unique prefix.  You
38       may use two hyphens instead of one to designate an option.  You may use
39       either  white  space  or  equals  signs  between an option name and its
40       value.
41
42
43
44       -cmap  Make output Targa file of type 24 bit colormapped.   Input  must
45              contain no more than 256 distinct colors.
46
47
48       -mono  Make  output Targa file of type 8 bit monochrome.  Input must be
49              PBM or PGM or a PAM with BLACKANDWHITE or GRAYSCALE tuple  type.
50              See -cmap.
51
52              You  may  specify at most one of -mono, -cmap, and -rgb.  If you
53              specify neither, the default image type is the most highly  con‐
54              strained  compatible type is used, where monochrome is more con‐
55              strained than colormapped which is in turn more constrained than
56              unmapped.
57
58
59       -rgb   Make  output  Targa  file  of  type  24 bit unmapped color.  See
60              -cmap.
61
62
63       -norle Do not use run-length encoding in the output Targa  file.   Run-
64              length  encoded  files are smaller, but Some Targa readers can't
65              read run-length encoded files.
66
67
68
69

SEE ALSO

71       tgatoppm(1), pnmquant(1), pamstack(1), pam(1) pnm(1)
72
73

HISTORY

75       This program was called ppmtotga until Netpbm 10.6 (July  2002).   That
76       was always a misnomer, though, because a PPM class program would not be
77       able to tell the difference between PGM and PPM  input  (it  would  all
78       look  like  PPM), and thus could not choose the output Targa image type
79       based on the type of the input.  Netpbm 10.6 also added the ability  to
80       handle an alpha channel, so it became a PAM class program.
81
82       In  Netpbm  10.15  (April  2003),  the  program became the first in the
83       Netpbm package to recognize an alpha channel in a PAM.   It  recognized
84       tuple  type 'RGBA'.  But when this kind of PAM image was later added to
85       the PAM specification, it was specified with  tuple  type  'RGB_ALPHA'.
86       So  in  Netpbm  10-26  (January  2005),  pamtotga  changed to recognize
87       'RGB_ALPHA' instead of 'RGBA'.
88
89

AUTHOR

91       Copyright (C) 1989, 1991 by Mark Shand and Jef Poskanzer.
92
93
94
95netpbm documentation             21 July 2002          Pamtotga User Manual(0)
Impressum