<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
<!--ArborText, Inc., 1988-1999, v.4002-->
<!--ARC : LSARC 2003/085 libtiff, libjpeg, and libpng-->
<!ENTITY cmd "pal2rgb">
<!ENTITY % commonents SYSTEM "smancommon.ent">
%commonents;
<!ENTITY % booktitles SYSTEM "booktitles.ent">
%booktitles;
<!ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
]>
<?Pub UDT _bookmark _target>
<?Pub Inc>
<refentry id="pal2rgb-1">
<!-- %Z%%M% %I% %E% SMI; -->
<refmeta><refentrytitle>pal2rgb</refentrytitle><manvolnum>1</manvolnum>
<refmiscinfo class="date">26 Mar 2004</refmiscinfo>
<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
<refmiscinfo class="software">&release;</refmiscinfo>
<refmiscinfo class="arch">generic</refmiscinfo>
<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
</refmeta>
<indexterm><primary>pal2rgb</primary></indexterm><indexterm><primary>convert
a palette color TIFF image to a full color image</primary></indexterm>
<refnamediv id="pal2rgb-1-name"><refname>pal2rgb</refname><refpurpose>convert
a palette color TIFF image to a full color image</refpurpose></refnamediv>
<refsynopsisdiv id="pal2rgb-1-synp"><title>&synp-tt;</title>
<cmdsynopsis><command>&cmd;</command><arg choice="opt"><option role="nodash"><replaceable>
options</replaceable></option></arg><arg choice="plain"><option role="nodash"><replaceable>
input.tif</replaceable></option></arg><arg choice="plain"><option role="nodash"><replaceable>
output.tif</replaceable></option></arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1 id="pal2rgb-1-desc"><title>&desc-tt;</title>
<para><command>&cmd;</command> 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.</para>
</refsect1>
<refsect1 id="pal2rgb-1-opts"><title>&opts-tt;</title>
<refsect2 id="pal2rgb-1-opts-input">
<title>Input Data Options</title>
<para>The following input data options are supported:</para>
<variablelist termlength="narrow">
<varlistentry><term><option>C</option></term><listitem><para>Override the
default behavior of <command>&cmd;</command> 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 <option>C</option> option can be used to explicitly
specify the number of bits for colormap entries: <option>C 8</option> for
8-bit values, <option>C 16</option> for 16-bit values.</para>
</listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pal2rgb-1-opts-output">
<title>Output File Options</title>
<para>The following output file options are supported:</para>
<variablelist termlength="narrow">
<varlistentry><term><option>c</option></term><listitem><para>Specify a compression
scheme to use when writing image data:</para>
<variablelist>
<varlistentry><term><option>c lzw</option></term><listitem><para>Lempel-Ziv
and Welch algorithm.</para>
</listitem></varlistentry>
<varlistentry><term><option>c none</option></term><listitem><para>No compression.
</para>
</listitem></varlistentry>
<varlistentry><term><option>c packbits</option></term><listitem><para>PackBits
compression algorithm.</para>
</listitem></varlistentry>
<varlistentry><term><option>c zip</option></term><listitem><para>Deflate compression
algorithm.</para>
</listitem></varlistentry>
</variablelist><para>If no compression-related option is specified, the input-file
compression algorithm is used.</para>
</listitem></varlistentry>
<varlistentry><term><option>p</option></term><listitem><para>Explicitly select
the planar configuration used to organize data samples in the output image:
</para>
<variablelist>
<varlistentry><term><option>p contig</option></term><listitem><para>Samples
are packed contiguously. This is the default.</para>
</listitem></varlistentry>
<varlistentry><term><option>p separate</option></term><listitem><para>Samples
are stored separately.</para>
</listitem></varlistentry>
</variablelist></listitem></varlistentry>
<varlistentry><term><option>r</option></term><listitem><para>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.</para>
</listitem></varlistentry>
</variablelist></refsect2>
</refsect1>
<refsect1 id="pal2rgb-1-oper"><title>&oper-tt;</title>
<para>The following operands are supported:</para>
<variablelist termlength="narrow">
<varlistentry><term><option role="nodash"><replaceable>input.tif</replaceable></option></term>
<listitem><para>The name of the input TIFF file.</para>
</listitem></varlistentry>
<varlistentry><term><option role="nodash"><replaceable>output.tif</replaceable></option></term>
<listitem><para>The name of the output file.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1 id="pal2rgb-1-attr"><title>&attr-tt;</title>
<para>See <olink targetdocent="REFMAN5" localinfo="attributes-5"><citerefentry>
<refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink>
for descriptions of the following attributes:</para>
<informaltable frame="all">
<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*">
<colspec colname="COLSPEC1" colwidth="1*">
<thead>
<row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center"
valign="middle">ATTRIBUTE VALUE</entry></row>
</thead>
<tbody>
<row><entry><para>Availability</para></entry><entry><para>image/library/libtiff</para></entry>
</row>
<row><entry colname="COLSPEC0"><para>Interface stability</para></entry><entry
colname="COLSPEC1"><para>Uncommitted</para></entry></row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="pal2rgb-1-also"><title>&also-tt;</title>
<!--Reference to another man page-->
<!--Reference to a Help manual-->
<!--Reference to a book.-->
<para><citerefentry><refentrytitle>tiffinfo</refentrytitle><manvolnum>1</manvolnum>
</citerefentry>, <citerefentry><refentrytitle>tiffcp</refentrytitle><manvolnum>
1</manvolnum></citerefentry>, <citerefentry><refentrytitle>tiffmedian</refentrytitle>
<manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>libtiff
</refentrytitle><manvolnum>3</manvolnum></citerefentry></para>
</refsect1>
<refsect1 id="pal2rgb-1-note"><title>&note-tt;</title>
<para>Only 8&ndash;bit images are supported.</para>
<para>Updated by Breda McColgan, Sun Microsystems Inc., 2004.</para>
</refsect1>
</refentry>