kusano 7d535a
.\" $Id: ppm2tiff.1,v 1.5 2006-03-01 11:20:33 dron Exp $
kusano 7d535a
.\"
kusano 7d535a
.\" Copyright (c) 1991-1997 Sam Leffler
kusano 7d535a
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
kusano 7d535a
.\"
kusano 7d535a
.\" Permission to use, copy, modify, distribute, and sell this software and 
kusano 7d535a
.\" its documentation for any purpose is hereby granted without fee, provided
kusano 7d535a
.\" that (i) the above copyright notices and this permission notice appear in
kusano 7d535a
.\" all copies of the software and related documentation, and (ii) the names of
kusano 7d535a
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
kusano 7d535a
.\" publicity relating to the software without the specific, prior written
kusano 7d535a
.\" permission of Sam Leffler and Silicon Graphics.
kusano 7d535a
.\" 
kusano 7d535a
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
kusano 7d535a
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
kusano 7d535a
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
kusano 7d535a
.\" 
kusano 7d535a
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
kusano 7d535a
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
kusano 7d535a
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
kusano 7d535a
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
kusano 7d535a
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
kusano 7d535a
.\" OF THIS SOFTWARE.
kusano 7d535a
.\"
kusano 7d535a
.if n .po 0
kusano 7d535a
.TH PPM2TIFF 1 "March 1, 2006" "libtiff"
kusano 7d535a
.SH NAME
kusano 7d535a
ppm2tiff \- create a
kusano 7d535a
.SM TIFF
kusano 7d535a
file from 
kusano 7d535a
.SM PPM, PGM
kusano 7d535a
and
kusano 7d535a
.SM PBM
kusano 7d535a
image files
kusano 7d535a
.SH SYNOPSIS
kusano 7d535a
.B ppm2tiff
kusano 7d535a
[
kusano 7d535a
.I options
kusano 7d535a
] [
kusano 7d535a
.I input.ppm
kusano 7d535a
]
kusano 7d535a
.I output.tif
kusano 7d535a
.SH DESCRIPTION
kusano 7d535a
.I ppm2tiff
kusano 7d535a
converts a file in the 
kusano 7d535a
.SM PPM, PGM
kusano 7d535a
and
kusano 7d535a
.SM PBM
kusano 7d535a
image formats to
kusano 7d535a
.SM TIFF.
kusano 7d535a
By default, the
kusano 7d535a
.SM TIFF
kusano 7d535a
image is created with data samples packed (\c
kusano 7d535a
.IR PlanarConfiguration =1),
kusano 7d535a
compressed with the Packbits algorithm (\c
kusano 7d535a
.IR Compression =32773),
kusano 7d535a
and with each strip no more than 8 kilobytes. These characteristics can be
kusano 7d535a
overridden, or explicitly specified with the options described below
kusano 7d535a
.PP
kusano 7d535a
If the
kusano 7d535a
.SM PPM
kusano 7d535a
file contains greyscale data, then the
kusano 7d535a
.I PhotometricInterpretation
kusano 7d535a
tag is set to 1 (min-is-black), otherwise it is set to 2 (RGB).
kusano 7d535a
.PP
kusano 7d535a
If no
kusano 7d535a
.SM PPM
kusano 7d535a
file is specified on the command line,
kusano 7d535a
.I ppm2tiff
kusano 7d535a
will read from the standard input.
kusano 7d535a
.SH OPTIONS
kusano 7d535a
.TP
kusano 7d535a
.B \-c
kusano 7d535a
Specify a compression scheme to use when writing image data:
kusano 7d535a
.B none 
kusano 7d535a
for no compression,
kusano 7d535a
.B packbits
kusano 7d535a
for PackBits compression (will be used by default),
kusano 7d535a
.B lzw
kusano 7d535a
for Lempel-Ziv & Welch compression,
kusano 7d535a
.B jpeg
kusano 7d535a
for baseline JPEG compression,
kusano 7d535a
.B zip
kusano 7d535a
for Deflate compression,
kusano 7d535a
.B g3
kusano 7d535a
for CCITT Group 3 (T.4) compression,
kusano 7d535a
and
kusano 7d535a
.B g4
kusano 7d535a
for CCITT Group 4 (T.6) compression.
kusano 7d535a
.TP
kusano 7d535a
.B \-r
kusano 7d535a
Write data with a specified number of rows per strip; by default the number of
kusano 7d535a
rows/strip is selected so that each strip is approximately 8 kilobytes.
kusano 7d535a
.TP
kusano 7d535a
.B \-R
kusano 7d535a
Mark the resultant image to have the specified X and Y resolution (in
kusano 7d535a
dots/inch).
kusano 7d535a
.SH "SEE ALSO"
kusano 7d535a
.BR tiffinfo (1),
kusano 7d535a
.BR tiffcp (1),
kusano 7d535a
.BR tiffmedian (1),
kusano 7d535a
.BR libtiff (3)
kusano 7d535a
.PP
kusano 7d535a
Libtiff library home page:
kusano 7d535a
.BR http://www.remotesensing.org/libtiff/