1PAL2RGB(1)                  General Commands Manual                 PAL2RGB(1)
2
3
4

NAME

6       pal2rgb - convert a palette color TIFF image to a full color image
7

SYNOPSIS

9       pal2rgb [ options ] input.tif output.tif
10

DESCRIPTION

12       Pal2rgb  converts  a  palette color TIFF image to a full color image by
13       applying the colormap of the palette image to each sample to generate a
14       full color RGB image.
15

OPTIONS

17       Options that affect the interpretation of input data are:
18
19       -C     This  option overrides the default behavior of pal2rgb in deter‐
20              mining whether or not colormap entries contain 16-bit  or  8-bit
21              values.  By default the colormap is inspected and if no colormap
22              entry greater than 255 is found, the colormap is assumed to have
23              only  8-bit  values; otherwise 16-bit values (as required by the
24              TIFF specification) are assumed.  The -C option can be  used  to
25              explicitly specify the number of bits for colormap entries: -C 8
26              for 8-bit values, -C 16 for 16-bit values.
27
28       Options that affect the output file format are:
29
30       -p     Explicitly select the planar configuration  used  in  organizing
31              data  samples  in the output image: -p contig for samples packed
32              contiguously, and -p separate for samples stored separately.  By
33              default samples are packed.
34
35       -c     Use  the specific compression algorithm to encoded image data in
36              the output file: -c packbits for Macintosh Packbits, -c lzw  for
37              Lempel-Ziv  & Welch, -c zip for Deflate, -c none for no compres‐
38              sion.  If no compression-related option is specified, the  input
39              file's compression algorithm is used.
40
41       -r     Explicitly  specify the number of rows in each strip of the out‐
42              put file.  If the -r  option  is  not  specified,  a  number  is
43              selected  such  that each output strip has approximately 8 kilo‐
44              bytes of data in it.
45

BUGS

47       Only 8-bit images are handled.
48

SEE ALSO

50       tiffinfo(1), tiffcp(1), tiffmedian(1), libtiff(3)
51
52       Libtiff library home page: http://www.remotesensing.org/libtiff/
53
54
55
56libtiff                       September 20, 2005                    PAL2RGB(1)
Impressum