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

tifftopnm — Convert a TIFF image to a PNM image. More information: <https://netpbm.sourceforge.net/doc/tifftopnm

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

Problem

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

Solution

tifftopnm — Convert a TIFF image to a PNM image. More information: <https://netpbm.sourceforge.net/doc/tifftopnm.html>.

Convert a TIFF to a PNM file:
tifftopnm {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}


Create a PGM file containing the alpha channel of the input image:
tifftopnm {{[-a|-alphaout]}} {{path/to/alpha_file.pgm}} {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}


Respect the fillorder tag in the input TIFF image:
tifftopnm {{[-r|-respectfillorder]}} {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}


Print TIFF header information to stderr:
tifftopnm {{[-h|-headerdump]}} {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}

Code Snippets

Convert a TIFF to a PNM file

tifftopnm {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}

Create a PGM file containing the alpha channel of the input image

tifftopnm {{[-a|-alphaout]}} {{path/to/alpha_file.pgm}} {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}

Respect the `fillorder` tag in the input TIFF image

tifftopnm {{[-r|-respectfillorder]}} {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}

Print TIFF header information to `stderr`

tifftopnm {{[-h|-headerdump]}} {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}

Context

tldr-pages: common/tifftopnm

Revisions (0)

No revisions yet.