xref: /libtiff-4.0.7/html/man/ppm2tiff.1.html (revision 0776b32d)
1<!-- Creator     : groff version 1.18.1 -->
2<!-- CreationDate: Fri Dec 30 00:56:00 2005 -->
3<html>
4<head>
5<meta name="generator" content="groff -Thtml, see www.gnu.org">
6<meta name="Content-Style" content="text/css">
7<title>PPM2TIFF</title>
8</head>
9<body>
10
11<h1 align=center>PPM2TIFF</h1>
12<a href="#NAME">NAME</a><br>
13<a href="#SYNOPSIS">SYNOPSIS</a><br>
14<a href="#DESCRIPTION">DESCRIPTION</a><br>
15<a href="#OPTIONS">OPTIONS</a><br>
16<a href="#SEE ALSO">SEE ALSO</a><br>
17
18<hr>
19<a name="NAME"></a>
20<h2>NAME</h2>
21<!-- INDENTATION -->
22<table width="100%" border=0 rules="none" frame="void"
23       cols="2" cellspacing="0" cellpadding="0">
24<tr valign="top" align="left">
25<td width="8%"></td>
26<td width="91%">
27<p>ppm2tiff &minus; create a <small>TIFF</small> file from a
28<small>PPM</small> image file</p>
29</td>
30</table>
31<a name="SYNOPSIS"></a>
32<h2>SYNOPSIS</h2>
33<!-- INDENTATION -->
34<table width="100%" border=0 rules="none" frame="void"
35       cols="2" cellspacing="0" cellpadding="0">
36<tr valign="top" align="left">
37<td width="8%"></td>
38<td width="91%">
39<p><b>ppm2tiff</b> [ <i>options</i> ] [ <i>input.ppm</i> ]
40<i>output.tif</i></p>
41</td>
42</table>
43<a name="DESCRIPTION"></a>
44<h2>DESCRIPTION</h2>
45<!-- INDENTATION -->
46<table width="100%" border=0 rules="none" frame="void"
47       cols="2" cellspacing="0" cellpadding="0">
48<tr valign="top" align="left">
49<td width="8%"></td>
50<td width="91%">
51<p><i>ppm2tiff</i> converts a file in the <small>PPM</small>
52image format to <small>TIFF.</small> By default, the
53<small>TIFF</small> image is created with data samples
54packed (<i>PlanarConfiguration</i>=1), compressed with the
55Lempel-Ziv &amp; Welch algorithm (<i>Compression</i>=5), and
56with each strip no more than 8 kilobytes. These
57characteristics can be overridden, or explicitly specified
58with the options described below</p>
59<!-- INDENTATION -->
60<p>If the <small>PPM</small> file contains greyscale data,
61then the <i>PhotometricInterpretation</i> tag is set to 1
62(min-is-black), otherwise it is set to 2 (RGB).</p>
63<!-- INDENTATION -->
64<p>If no <small>PPM</small> file is specified on the command
65line, <i>ppm2tiff</i> will read from the standard input.</p>
66</td>
67</table>
68<a name="OPTIONS"></a>
69<h2>OPTIONS</h2>
70<!-- TABS -->
71<table width="100%" border=0 rules="none" frame="void"
72       cols="5" cellspacing="0" cellpadding="0">
73<tr valign="top" align="left">
74<td width="11%"></td>
75<td width="2%">
76
77<p><b>&minus;c</b></p>
78</td>
79<td width="5%"></td>
80<td width="80%">
81
82<p>Specify a compression scheme to use when writing image
83data: <b>&minus;c none</b> for no compression, <b>-c
84packbits</b> for the PackBits compression algorithm (the
85default), <b>-c jpeg</b> for the baseline JPEG compression
86algorithm, <b>-c zip</b> for the Deflate compression
87algorithm, and <b>&minus;c lzw</b> for Lempel-Ziv &amp;
88Welch compression.</p>
89</td>
90<td width="0%">
91</td>
92<tr valign="top" align="left">
93<td width="11%"></td>
94<td width="2%">
95
96<p><b>&minus;r</b></p>
97</td>
98<td width="5%"></td>
99<td width="80%">
100
101<p>Write data with a specified number of rows per strip; by
102default the number of rows/strip is selected so that each
103strip is approximately 8 kilobytes.</p>
104</td>
105<td width="0%">
106</td>
107<tr valign="top" align="left">
108<td width="11%"></td>
109<td width="2%">
110
111<p><b>&minus;R</b></p>
112</td>
113<td width="5%"></td>
114<td width="80%">
115
116<p>Mark the resultant image to have the specified X and Y
117resolution (in dots/inch).</p>
118</td>
119<td width="0%">
120</td>
121</table>
122<a name="SEE ALSO"></a>
123<h2>SEE ALSO</h2>
124<!-- INDENTATION -->
125<table width="100%" border=0 rules="none" frame="void"
126       cols="2" cellspacing="0" cellpadding="0">
127<tr valign="top" align="left">
128<td width="8%"></td>
129<td width="91%">
130<p><b>tiffinfo</b>(1), <b>tiffcp</b>(1),
131<b>tiffmedian</b>(1), <b>libtiff</b>(3)</p>
132<!-- INDENTATION -->
133<p>Libtiff library home page:
134<b>http://www.remotesensing.org/libtiff/</b></p>
135</td>
136</table>
137<hr>
138</body>
139</html>
140