kusano 7d535a
.\" $Id: pal2rgb.1,v 1.3 2005-11-02 11:07:19 dron Exp $
kusano 7d535a
.\"
kusano 7d535a
.\" Copyright (c) 1990-1997 Sam Leffler
kusano 7d535a
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
kusano 7d535a
.\"
kusano 7d535a
.\" Permission to use, copy, modify, distribute, and sell this software and 
kusano 7d535a
.\" its documentation for any purpose is hereby granted without fee, provided
kusano 7d535a
.\" that (i) the above copyright notices and this permission notice appear in
kusano 7d535a
.\" all copies of the software and related documentation, and (ii) the names of
kusano 7d535a
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
kusano 7d535a
.\" publicity relating to the software without the specific, prior written
kusano 7d535a
.\" permission of Sam Leffler and Silicon Graphics.
kusano 7d535a
.\" 
kusano 7d535a
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
kusano 7d535a
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
kusano 7d535a
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
kusano 7d535a
.\" 
kusano 7d535a
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
kusano 7d535a
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
kusano 7d535a
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
kusano 7d535a
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
kusano 7d535a
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
kusano 7d535a
.\" OF THIS SOFTWARE.
kusano 7d535a
.\"
kusano 7d535a
.if n .po 0
kusano 7d535a
.TH PAL2RGB 1 "September 20, 2005" "libtiff"
kusano 7d535a
.SH NAME
kusano 7d535a
pal2rgb \- convert a palette color
kusano 7d535a
.SM TIFF
kusano 7d535a
image to a full color image
kusano 7d535a
.SH SYNOPSIS
kusano 7d535a
.B pal2rgb
kusano 7d535a
[
kusano 7d535a
.I options
kusano 7d535a
]
kusano 7d535a
.I input.tif
kusano 7d535a
.I output.tif
kusano 7d535a
.SH DESCRIPTION
kusano 7d535a
.I Pal2rgb
kusano 7d535a
converts a palette color
kusano 7d535a
.SM TIFF
kusano 7d535a
image to a full color image by
kusano 7d535a
applying the colormap of the palette image to each sample
kusano 7d535a
to generate a full color
kusano 7d535a
.SM RGB
kusano 7d535a
image.
kusano 7d535a
.SH OPTIONS
kusano 7d535a
Options that affect the interpretation of input data are:
kusano 7d535a
.TP
kusano 7d535a
.B \-C
kusano 7d535a
This option overrides the default behavior of
kusano 7d535a
.I pal2rgb
kusano 7d535a
in determining whether or not
kusano 7d535a
colormap entries contain 16-bit or 8-bit values.
kusano 7d535a
By default the colormap is inspected and
kusano 7d535a
if no colormap entry greater than 255 is found,
kusano 7d535a
the colormap is assumed to have only 8-bit values; otherwise
kusano 7d535a
16-bit values (as required by the
kusano 7d535a
.SM TIFF
kusano 7d535a
specification) are assumed.
kusano 7d535a
The
kusano 7d535a
.B \-C
kusano 7d535a
option can be used to explicitly specify the number of
kusano 7d535a
bits for colormap entries:
kusano 7d535a
.B "\-C 8"
kusano 7d535a
for 8-bit values, 
kusano 7d535a
.B "\-C 16"
kusano 7d535a
for 16-bit values.
kusano 7d535a
.PP
kusano 7d535a
Options that affect the output file format are:
kusano 7d535a
.TP
kusano 7d535a
.B \-p
kusano 7d535a
Explicitly select the planar configuration used in organizing
kusano 7d535a
data samples in the output image:
kusano 7d535a
.B "\-p contig"
kusano 7d535a
for samples packed contiguously, and
kusano 7d535a
.B "\-p separate"
kusano 7d535a
for samples stored separately.
kusano 7d535a
By default samples are packed.
kusano 7d535a
.TP
kusano 7d535a
.B \-c
kusano 7d535a
Use the specific compression algorithm to encoded image data
kusano 7d535a
in the output file:
kusano 7d535a
.B "\-c packbits"
kusano 7d535a
for Macintosh Packbits,
kusano 7d535a
.B "\-c lzw"
kusano 7d535a
for Lempel-Ziv & Welch,
kusano 7d535a
.B "\-c zip"
kusano 7d535a
for Deflate,
kusano 7d535a
.B "\-c none"
kusano 7d535a
for no compression.
kusano 7d535a
If no compression-related option is specified, the input
kusano 7d535a
file's compression algorithm is used.
kusano 7d535a
.TP
kusano 7d535a
.B \-r
kusano 7d535a
Explicitly specify the number of rows in each strip of the
kusano 7d535a
output file.
kusano 7d535a
If the
kusano 7d535a
.B \-r
kusano 7d535a
option is not specified, a number is selected such that each
kusano 7d535a
output strip has approximately 8 kilobytes of data in it.
kusano 7d535a
.SH BUGS
kusano 7d535a
Only 8-bit images are handled.
kusano 7d535a
.SH "SEE ALSO"
kusano 7d535a
.BR tiffinfo (1),
kusano 7d535a
.BR tiffcp (1),
kusano 7d535a
.BR tiffmedian (1),
kusano 7d535a
.BR libtiff (3)
kusano 7d535a
.PP
kusano 7d535a
Libtiff library home page:
kusano 7d535a
.BR http://www.remotesensing.org/libtiff/