Blame man/pal2rgb.1

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