10139N/A<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
13666N/A<!--ARC : LSARC 2003/085 libtiff, libjpeg, and libpng-->
10139N/A<!ENTITY cmd "ppm2tiff">
10139N/A<!ENTITY % commonents SYSTEM "smancommon.ent">
10139N/A%commonents;
10139N/A<!ENTITY % booktitles SYSTEM "booktitles.ent">
10139N/A%booktitles;
10139N/A<!ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
10139N/A]>
10139N/A<?Pub UDT _bookmark _target>
10139N/A<?Pub Inc>
10139N/A<refentry id="ppm2tiff-1">
10139N/A<!-- %Z%%M% %I% %E% SMI; -->
10139N/A<refmeta><refentrytitle>ppm2tiff</refentrytitle><manvolnum>1</manvolnum>
10139N/A<refmiscinfo class="date">26 Mar 2004</refmiscinfo>
10139N/A<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
10139N/A<refmiscinfo class="software">&release;</refmiscinfo>
10139N/A<refmiscinfo class="arch">generic</refmiscinfo>
10139N/A<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
10139N/A</refmeta>
10139N/A<indexterm><primary>ppm2tiff</primary></indexterm><indexterm><primary>create
10139N/Aa TIFF file from a PPM image file</primary></indexterm>
10139N/A<refnamediv id="ppm2tiff-1-name"><refname>ppm2tiff</refname><refpurpose>create
10139N/Aa TIFF file from a PPM image file</refpurpose></refnamediv>
10139N/A<refsynopsisdiv id="ppm2tiff-1-synp"><title>&synp-tt;</title>
10139N/A<cmdsynopsis><command>&cmd;</command><arg choice="opt"><option role="nodash"><replaceable>
10139N/Aoptions</replaceable></option></arg><arg choice="opt"><option role="nodash"><replaceable>
10139N/Ainput.ppm</replaceable></option></arg><arg choice="plain"><option role="nodash"><replaceable>
10139N/Aoutput.tif</replaceable></option></arg>
10139N/A</cmdsynopsis></refsynopsisdiv>
10139N/A<refsect1 id="ppm2tiff-1-desc"><title>&desc-tt;</title>
10139N/A<para><command>&cmd;</command> converts a file in the PPM image format to
10139N/ATIFF. By default, the TIFF image is created with data samples packed (PlanarConfiguration=1),
10139N/Acompressed with the Lempel-Ziv and Welch algorithm (Compression=5), and with
10139N/Aeach strip no more than 8 kilobytes. These characteristics can be overridden
10139N/Aor explicitly specified with the options described below.</para>
10139N/A<para>If the PPM file contains grayscale data, the PhotometricInterpretation
10139N/Atag is set to 1 (min-is-black). Otherwise, the PhotometricInterpretation tag
10139N/Ais set to 2 (RGB).</para>
10139N/A<para>If no PPM file is specified on the command line, <command>&cmd;</command>
10139N/Areads from the standard input.</para>
10139N/A</refsect1>
10139N/A<refsect1 id="ppm2tiff-1-opts"><title>&opts-tt;</title>
10139N/A<para>The following options are supported:</para>
10139N/A<variablelist termlength="narrow">
10139N/A<varlistentry><term><option>c</option></term><listitem><para>Specify a compression
10139N/Ascheme to use when writing image data:</para>
10139N/A<variablelist>
10139N/A<varlistentry><term><option>c jpeg</option></term><listitem><para>Baseline
11904N/AJPEG compression algorithm.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>c lzw</option></term><listitem><para>Lempel-Ziv
10139N/Aand Welch algorithm. This is the default algorithm.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>c none</option></term><listitem><para>No compression.
10139N/A</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>c packbits</option></term><listitem><para>PackBits
10139N/Acompression algorithm.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>c zip</option></term><listitem><para>Deflate compression
10139N/Aalgorithm.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></listitem></varlistentry>
10139N/A<varlistentry><term><option>r</option></term><listitem><para>Write data with
10139N/Aa specified number of rows per strip. By default, the number of rows per strip
10139N/Ais selected so that each strip is approximately 8 kilobytes.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>R</option></term><listitem><para>Mark the resultant
10139N/Aimage to have the specified X and Y resolution, in dots per inch.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="ppm2tiff-1-oper"><title>&oper-tt;</title>
10139N/A<para>The following operands are supported:</para>
10139N/A<variablelist termlength="narrow">
10139N/A<varlistentry><term><option role="nodash"><replaceable>input.ppm</replaceable></option></term>
10139N/A<listitem><para>The name of the input file that contains PPM data.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash"><replaceable>output.tif</replaceable></option></term>
10139N/A<listitem><para>The name of the output file that contains TIFF data.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="ppm2tiff-1-attr"><title>&attr-tt;</title>
10139N/A<para>See <olink targetdocent="REFMAN5" localinfo="attributes-5"><citerefentry>
10139N/A<refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink>
10139N/Afor descriptions of the following attributes:</para>
10139N/A<informaltable frame="all">
10139N/A<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*">
10139N/A<colspec colname="COLSPEC1" colwidth="1*">
10139N/A<thead>
10139N/A<row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center"
10139N/Avalign="middle">ATTRIBUTE VALUE</entry></row>
10139N/A</thead>
10139N/A<tbody>
18745N/A<row><entry><para>Availability</para></entry><entry><para>image/library/libtiff</para></entry>
10139N/A</row>
10139N/A<row><entry colname="COLSPEC0"><para>Interface stability</para></entry><entry
13623N/Acolname="COLSPEC1"><para>Uncommitted</para></entry></row>
10139N/A</tbody>
10139N/A</tgroup>
10139N/A</informaltable>
10139N/A</refsect1>
10139N/A<refsect1 id="ppm2tiff-1-also"><title>&also-tt;</title>
10139N/A<!--Reference to another man page-->
10139N/A<!--Reference to a Help manual-->
10139N/A<!--Reference to a book.-->
10139N/A<para><citerefentry><refentrytitle>tiffinfo</refentrytitle><manvolnum>1</manvolnum>
10139N/A</citerefentry>, <citerefentry><refentrytitle>tiffcp</refentrytitle><manvolnum>
10139N/A1</manvolnum></citerefentry>, <citerefentry><refentrytitle>tiffmedian</refentrytitle>
10139N/A<manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>libtiff
10139N/A</refentrytitle><manvolnum>3</manvolnum></citerefentry></para>
10139N/A</refsect1>
10139N/A<refsect1 id="ppm2tiff-1-note"><title>&note-tt;</title>
10139N/A<para>Updated by Breda McColgan, Sun Microsystems Inc., 2004.</para>
10139N/A</refsect1>
10139N/A</refentry>