.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "PPM2TIFF" "1" "Jan 27, 2024" "4.5" "LibTIFF" .SH NAME ppm2tiff \- create a TIFF file from PPM, PGM and PBM image files .sp Synopsis .sp \fBppm2tiff\fP [ \fIoptions\fP ] [ \fIinput.ppm\fP ] \fIoutput.tif\fP .SH DESCRIPTION .sp \fBppm2tiff\fP converts a file in the PPM, PGM and PBM image formats to TIFF. By default, the TIFF image is created with data samples packed (\fBPlanarConfiguration=1\fP), compressed with the Packbits algorithm (\fBCompression=32773\fP), and with each strip no more than 8 kilobytes. These characteristics can be overridden, or explicitly specified with the options described below. .sp If the PPM file contains greyscale data, then the \fBPhotometricInterpretation\fP tag is set to 1 (min\-is\-black), otherwise it is set to 2 (RGB). .sp If no PPM file is specified on the command line, \fBppm2tiff\fP will read from the standard input. .SH OPTIONS .INDENT 0.0 .TP .B \-c compress Specify a compression scheme to use when writing image data: \fB\-c none\fP for no compression, \fB\-c packbits\fP for PackBits compression (will be used by default), \fB\-c lzw\fP for Lempel\-Ziv & Welch compression, \fB\-c jpeg\fP for baseline JPEG compression, \fB\-c zip\fP for Deflate compression, \fB\-c g3\fP for CCITT Group 3 (T.4) compression, and \fB\-c g4\fP for CCITT Group 4 (T.6) compression. .UNINDENT .INDENT 0.0 .TP .B \-r striprows Write data with a specified number of rows per strip; by default the number of rows/strip is selected so that each strip is approximately 8 kilobytes. .UNINDENT .INDENT 0.0 .TP .B \-R resolution Mark the resultant image to have the specified X and Y resolution (in dots/inch). .UNINDENT .SH SEE ALSO .sp \fI\%tiffinfo\fP (1), \fI\%tiffcp\fP (1), \fI\%tiffmedian\fP (1), \fI\%libtiff\fP (3tiff) .SH AUTHOR LibTIFF contributors .SH COPYRIGHT 1988-2024, LibTIFF contributors .\" Generated by docutils manpage writer. .