LinuxCommandLibrary

pnmtotiff

Convert PNM images to TIFF format

TLDR

Convert PNM to TIFF

$ pnmtotiff [input.pnm] > [output.tiff]
copy
Convert with LZW compression
$ pnmtotiff -lzw [input.pnm] > [output.tiff]
copy
Convert with JPEG compression
$ pnmtotiff -jpeg [input.pnm] > [output.tiff]
copy
Create multi-page TIFF
$ pnmtotiff -append [input.pnm] >> [output.tiff]
copy

SYNOPSIS

pnmtotiff [options] [file]

DESCRIPTION

pnmtotiff converts PNM images to TIFF (Tagged Image File Format), widely used for high-quality image storage and print workflows. Multiple compression methods are supported including LZW, JPEG, PackBits, and Group 3 fax encoding.
The -append option allows building multi-page TIFF files by appending images to an existing file. The -resolution option embeds DPI metadata for print sizing. Part of the Netpbm toolkit; superseded by pamtotiff.

PARAMETERS

-none

No compression.
-lzw
LZW compression.
-jpeg
JPEG compression.
-packbits
PackBits compression.
-g3
Group 3 fax compression.
-append
Append to existing TIFF.
-resolution dpi
Set resolution.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community