Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/doc/tools/pal2rgb.rst

raw
1 pal2rgb
2 =======
3
4 .. program:: pal2rgb
5
6 Synopsis
7 --------
8
9 **pal2rgb** [ *options* ] *input.tif* *output.tif*
10
11 Description
12 -----------
13
14 :program:`pal2rgb` converts a palette color image to a full color image by
15 applying the colormap of the palette image to each sample to generate a full color
16 RGB image.
17
18 Options
19 -------
20
21 Options that affect the interpretation of input data are:
22
23 .. option:: -C numentries
24
25 This option overrides the default behavior of :program:`pal2rgb`
26 in determining whether or not
27 colormap entries contain 16-bit or 8-bit values.
28 By default the colormap is inspected and
29 if no colormap entry greater than 255 is found,
30 the colormap is assumed to have only 8-bit values; otherwise
31 16-bit values (as required by the TIFF
32 specification) are assumed.
33 The
34 :option:`-C`
35 option can be used to explicitly specify the number of
36 bits for colormap entries:
37 :command:`-C 8` for 8-bit values,
38 :command:`-C 16` for 16-bit values.
39
40 Options that affect the output file format are:
41
42 .. option:: -p planarconfig
43
44 Explicitly select the planar configuration used in organizing
45 data samples in the output image:
46 :command:`-p contig` for samples packed contiguously, and
47 :command:`-p separate` for samples stored separately.
48 By default samples are packed.
49
50 .. option:: -c compress
51
52 Use the specified compression algorithm to encoded image data
53 in the output file:
54 :command:`-c packbits` for Macintosh Packbits,
55 :command:`-c lzw` for Lempel-Ziv & Welch,
56 :command:`-c zip` for Deflate,
57 :command:`-c none`
58 for no compression.
59 If no compression-related option is specified, the input
60 file's compression algorithm is used.
61
62 .. option:: -r striprows
63
64 Explicitly specify the number of rows in each strip of the
65 output file. If the :option:`-r`
66 option is not specified, a number is selected such that each
67 output strip has approximately 8 kilobytes of data in it.
68
69 Bugs
70 ----
71
72 Only 8-bit images are handled.
73
74 See also
75 --------
76
77 :doc:`tiffinfo` (1),
78 :doc:`tiffcp` (1),
79 :doc:`tiffmedian` (1),
80 :doc:`/functions/libtiff` (3tiff)