.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "PAL2RGB" "1" "Jan 27, 2024" "4.5" "LibTIFF" .SH NAME pal2rgb \- convert a palette color TIFF image to a full color image .SH SYNOPSIS .sp \fBpal2rgb\fP [ \fIoptions\fP ] \fIinput.tif\fP \fIoutput.tif\fP .SH DESCRIPTION .sp \fBpal2rgb\fP converts a palette color image to a full color image by applying the colormap of the palette image to each sample to generate a full color RGB image. .SH OPTIONS .sp Options that affect the interpretation of input data are: .INDENT 0.0 .TP .B \-C numentries This option overrides the default behavior of \fBpal2rgb\fP in determining whether or not colormap entries contain 16\-bit or 8\-bit values. By default the colormap is inspected and if no colormap entry greater than 255 is found, the colormap is assumed to have only 8\-bit values; otherwise 16\-bit values (as required by the TIFF specification) are assumed. The \fI\%\-C\fP option can be used to explicitly specify the number of bits for colormap entries: \fB\-C 8\fP for 8\-bit values, \fB\-C 16\fP for 16\-bit values. .UNINDENT .sp Options that affect the output file format are: .INDENT 0.0 .TP .B \-p planarconfig Explicitly select the planar configuration used in organizing data samples in the output image: \fB\-p contig\fP for samples packed contiguously, and \fB\-p separate\fP for samples stored separately. By default samples are packed. .UNINDENT .INDENT 0.0 .TP .B \-c compress Use the specified compression algorithm to encoded image data in the output file: \fB\-c packbits\fP for Macintosh Packbits, \fB\-c lzw\fP for Lempel\-Ziv & Welch, \fB\-c zip\fP for Deflate, \fB\-c none\fP for no compression. If no compression\-related option is specified, the input file\(aqs compression algorithm is used. .UNINDENT .INDENT 0.0 .TP .B \-r striprows Explicitly specify the number of rows in each strip of the output file. If the \fI\%\-r\fP option is not specified, a number is selected such that each output strip has approximately 8 kilobytes of data in it. .UNINDENT .SH BUGS .sp Only 8\-bit images are handled. .SH SEE ALSO .sp \fI\%tiffinfo\fP (1), \fI\%tiffcp\fP (1), \fI\%tiffmedian\fP (1), \fI\%libtiff\fP (3tiff) .SH AUTHOR LibTIFF contributors .SH COPYRIGHT 1988-2024, LibTIFF contributors .\" Generated by docutils manpage writer. .