HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pamtotiff — Convert a PAM image to a TIFF file. More information: <https://netpbm.sourceforge.net/doc/pamtotiff.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
pamcommandconvertpamtotiffcliimagefiletiff

Problem

How to use the pamtotiff command: Convert a PAM image to a TIFF file. More information: <https://netpbm.sourceforge.net/doc/pamtotiff.html>.

Solution

pamtotiff — Convert a PAM image to a TIFF file. More information: <https://netpbm.sourceforge.net/doc/pamtotiff.html>.

Convert a PAM image to a TIFF image:
pamtotiff {{path/to/input_file.pam}} > {{path/to/output_file.tiff}}


Explicitly specify a compression method for the output file:
pamtotiff -{{none|packbits|lzw|g3|g4|flate|adobeflate}} {{path/to/input_file.pam}} > {{path/to/output_file.tiff}}


Always produce a color TIFF image, even if the input image is greyscale:
pamtotiff {{[-c|-color]}} {{path/to/input_file.pam}} > {{path/to/output_file.tiff}}

Code Snippets

Convert a PAM image to a TIFF image

pamtotiff {{path/to/input_file.pam}} > {{path/to/output_file.tiff}}

Explicitly specify a compression method for the output file

pamtotiff -{{none|packbits|lzw|g3|g4|flate|adobeflate}} {{path/to/input_file.pam}} > {{path/to/output_file.tiff}}

Always produce a color TIFF image, even if the input image is greyscale

pamtotiff {{[-c|-color]}} {{path/to/input_file.pam}} > {{path/to/output_file.tiff}}

Context

tldr-pages: common/pamtotiff

Revisions (0)

No revisions yet.