Current File : //usr/man/man1/pal2rgb.1
'\" te
.TH pal2rgb 1 "26 Mar 2004" "SunOS 5.11" "User Commands"
.SH "NAME"
pal2rgb \- convert
a palette color TIFF image to a full color image
.SH "SYNOPSIS"
.PP
\fBpal2rgb\fR [\fB\fIoptions\fR\fR] \fB\fIinput\&.tif\fR\fR \fB\fIoutput\&.tif\fR\fR
.SH "DESCRIPTION"
.PP
\fBpal2rgb\fR converts a palette color TIFF 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"
.SS "Input Data Options"
.PP
The following input data options are supported:
.sp
.ne 2
.mk
\fB-\fBC\fR\fR
.in +16n
.rt
Override the
default behavior of \fBpal2rgb\fR to determine 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 -\fBC\fR option can be used to explicitly
specify the number of bits for colormap entries: -\fBC 8\fR for
8-bit values, -\fBC 16\fR for 16-bit values\&.
.sp
.sp 1
.in -16n
.SS "Output File Options"
.PP
The following output file options are supported:
.sp
.ne 2
.mk
\fB-\fBc\fR\fR
.in +16n
.rt
Specify a compression
scheme to use when writing image data:
.sp
.sp
.ne 2
.mk
\fB-\fBc lzw\fR\fR
.in +24n
.rt
Lempel-Ziv
and Welch algorithm\&.
.sp
.sp 2
.in -24n
.sp
.ne 2
.mk
\fB-\fBc none\fR\fR
.in +24n
.rt
No compression\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fB-\fBc packbits\fR\fR
.in +24n
.rt
PackBits
compression algorithm\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fB-\fBc zip\fR\fR
.in +24n
.rt
Deflate compression
algorithm\&.
.sp
.sp 1
.in -24n
If no compression-related option is specified, the input-file
compression algorithm is used\&.
.sp
.sp 0
.in -16n
.sp
.ne 2
.mk
\fB-\fBp\fR\fR
.in +16n
.rt
Explicitly select
the planar configuration used to organize data samples in the output image:
.sp
.sp
.ne 2
.mk
\fB-\fBp contig\fR\fR
.in +24n
.rt
Samples
are packed contiguously\&. This is the default\&.
.sp
.sp 2
.in -24n
.sp
.ne 2
.mk
\fB-\fBp separate\fR\fR
.in +24n
.rt
Samples
are stored separately\&.
.sp
.sp 1
.in -24n
.sp 0
.in -16n
.sp
.ne 2
.mk
\fB-\fBr\fR\fR
.in +16n
.rt
Write data with
a specified number of rows per strip\&. By default, the number of rows per strip
is selected so that each strip is approximately 8 kilobytes\&.
.sp
.sp 1
.in -16n
.SH "OPERANDS"
.PP
The following operands are supported:
.sp
.ne 2
.mk
\fB\fB\fIinput\&.tif\fR\fR\fR
.in +16n
.rt
The name of the input TIFF file\&.
.sp
.sp 1
.in -16n
.sp
.ne 2
.mk
\fB\fB\fIoutput\&.tif\fR\fR\fR
.in +16n
.rt
The name of the output file\&.
.sp
.sp 1
.in -16n
.SH "ATTRIBUTES"
.PP
See \fBattributes\fR(5)
for descriptions of the following attributes:
.sp
.TS
tab() allbox;
cw(2.750000i)| cw(2.750000i)
lw(2.750000i)| lw(2.750000i).
ATTRIBUTE TYPEATTRIBUTE VALUE
Availabilityimage/library/libtiff
Interface stabilityUncommitted
.TE
.sp
.SH "SEE ALSO"
.PP
\fBtiffinfo\fR(1), \fBtiffcp\fR(1), \fBtiffmedian\fR(1), \fBlibtiff\fR(3)
.SH "NOTES"
.PP
Only 8-bit images are supported\&.
.PP
Updated by Breda McColgan, Sun Microsystems Inc\&., 2004\&.
...\" created by instant / solbook-to-man, Thu 20 Mar 2014, 02:30
...\" LSARC 2003/085 libtiff, libjpeg, and libpng