| 1 |
ppm2tiff |
| 2 |
======== |
| 3 |
|
| 4 |
.. program:: ppm2tiff |
| 5 |
|
| 6 |
Synopsis |
| 7 |
|
| 8 |
**ppm2tiff** [ *options* ] [ *input.ppm* ] *output.tif* |
| 9 |
|
| 10 |
Description |
| 11 |
----------- |
| 12 |
|
| 13 |
:program:`ppm2tiff` converts a file in the PPM, PGM and PBM image formats to |
| 14 |
TIFF. By default, the TIFF image is created with data samples packed |
| 15 |
(``PlanarConfiguration=1``), compressed with the Packbits algorithm |
| 16 |
(``Compression=32773``), and with each strip no more than 8 kilobytes. |
| 17 |
These characteristics can be overridden, or explicitly specified with the |
| 18 |
options described below. |
| 19 |
|
| 20 |
If the PPM file contains greyscale data, then the ``PhotometricInterpretation`` |
| 21 |
tag is set to 1 (min-is-black), otherwise it is set to 2 (RGB). |
| 22 |
|
| 23 |
If no PPM file is specified on the command line, :program:`ppm2tiff` |
| 24 |
will read from the standard input. |
| 25 |
|
| 26 |
Options |
| 27 |
------- |
| 28 |
|
| 29 |
.. option:: -c compress |
| 30 |
|
| 31 |
Specify a compression scheme to use when writing image data: |
| 32 |
:command:`-c none` for no compression, |
| 33 |
:command:`-c packbits` for PackBits compression (will be used by default), |
| 34 |
:command:`-c lzw` for Lempel-Ziv & Welch compression, |
| 35 |
:command:`-c jpeg` for baseline JPEG compression, |
| 36 |
:command:`-c zip` for Deflate compression, |
| 37 |
:command:`-c g3` for CCITT Group 3 (T.4) compression, and |
| 38 |
:command:`-c g4` for CCITT Group 4 (T.6) compression. |
| 39 |
|
| 40 |
.. option:: -r striprows |
| 41 |
|
| 42 |
Write data with a specified number of rows per strip; by default the number of |
| 43 |
rows/strip is selected so that each strip is approximately 8 kilobytes. |
| 44 |
|
| 45 |
.. option:: -R resolution |
| 46 |
|
| 47 |
Mark the resultant image to have the specified X and Y resolution (in |
| 48 |
dots/inch). |
| 49 |
|
| 50 |
See also |
| 51 |
-------- |
| 52 |
|
| 53 |
:doc:`tiffinfo` (1), |
| 54 |
:doc:`tiffcp` (1), |
| 55 |
:doc:`tiffmedian` (1), |
| 56 |
:doc:`/functions/libtiff` (3tiff) |