xref: /libtiff-4.0.7/html/man/ppm2tiff.1.html (revision e49fae91)
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2<HTML><HEAD><TITLE>Manpage of PPM2TIFF</TITLE>
3</HEAD><BODY BGCOLOR=WHITE><FONT FACE="helvetica, sans, arial">
4<H1>PPM2TIFF</H1>
5Section: User Commands  (1)<BR>Updated: October 15, 1995<BR><A HREF="#index">Index</A>
6<BR><A HREF="index.html">Return to Main Contents</A>
7<HR>
8
9<A NAME="lbAB">&nbsp;</A>
10<H2>NAME</H2>
11
12ppm2tiff - create a
13<FONT SIZE="-1">TIFF</FONT>
14file from a
15<FONT SIZE="-1">PPM</FONT>
16image file
17<A NAME="lbAC">&nbsp;</A>
18<H2>SYNOPSIS</H2>
19
20<B>ppm2tiff</B>
21
22[
23<I>options</I>
24
25] [
26<I>input.ppm</I>
27
28]
29<I>output.tif</I>
30
31<A NAME="lbAD">&nbsp;</A>
32<H2>DESCRIPTION</H2>
33
34<I>ppm2tiff</I>
35
36converts a file in the
37<FONT SIZE="-1">PPM</FONT>
38image format to
39<FONT SIZE="-1">TIFF.</FONT>
40By default, the
41<FONT SIZE="-1">TIFF</FONT>
42image is created with data samples packed (<I>PlanarConfiguration</I>=1),
43
44compressed with the Lempel-Ziv &amp; Welch algorithm (<I>Compression</I>=5),
45
46and with each strip no more than 8 kilobytes.
47These characteristics can be overriden, or explicitly specified
48with the options described below
49<P>
50
51If the
52<FONT SIZE="-1">PPM</FONT>
53file contains greyscale data, then the
54<I>PhotometricInterpretation</I>
55
56tag is set to 1 (min-is-black),
57otherwise it is set to 2 (RGB).
58<P>
59
60If no
61<FONT SIZE="-1">PPM</FONT>
62file is specified on the command line,
63<I>ppm2tiff</I>
64
65will read from the standard input.
66<A NAME="lbAE">&nbsp;</A>
67<H2>OPTIONS</H2>
68
69<DL COMPACT>
70<DT><B>-c</B>
71
72<DD>
73Specify a compression scheme to use when writing image data:
74<B>-c none</B>
75
76for no compression,
77<B>-c packbits</B>
78
79for the PackBits compression algorithm,
80<B>-c jpeg</B>
81
82for the baseline JPEG compression algorithm,
83<B>-c zip</B>
84
85for the Deflate compression algorithm,
86and
87<B>-c lzw</B>
88
89for Lempel-Ziv &amp; Welch compression (the default).
90<DT><B>-r</B>
91
92<DD>
93Write data with a specified number of rows per strip;
94by default the number of rows/strip is selected so that each strip
95is approximately 8 kilobytes.
96<DT><B>-R</B>
97
98<DD>
99Mark the resultant image to have the specified
100X and Y resolution (in dots/inch).
101</DL>
102<A NAME="lbAF">&nbsp;</A>
103<H2>SEE ALSO</H2>
104
105<I><A HREF="tiffinfo+1.html">tiffinfo</A></I>(1),
106
107<I><A HREF="tiffcp+1.html">tiffcp</A></I>(1),
108
109<I><A HREF="tiffmedian+1.html">tiffmedian</A></I>(1),
110
111<I><A HREF="libtiff+3">libtiff</A></I>(3)
112
113
114<HR>
115<A NAME="index">&nbsp;</A><H2>Index</H2>
116<DL>
117<DT><A HREF="#lbAB">NAME</A><DD>
118<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
119<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
120<DT><A HREF="#lbAE">OPTIONS</A><DD>
121<DT><A HREF="#lbAF">SEE ALSO</A><DD>
122</DL>
123<HR>
124This document was created by
125<A HREF="index.html">man2html</A>,
126using the manual pages.<BR>
127Time: 01:31:47 GMT, November 23, 1999
128</BODY>
129</HTML>
130