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