pamtotiff

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

Install

All systems
curl cmd.cat/pamtotiff.sh
Debian Debian
apt-get install netpbm
Ubuntu
apt-get install netpbm
Arch Arch Linux
pacman -S netpbm
image/svg+xml Kali Linux
apt-get install netpbm
CentOS
yum install netpbm-progs
Fedora
dnf install netpbm-progs
Windows (WSL2)
sudo apt-get update sudo apt-get install netpbm
OS X
brew install netpbm
Raspbian
apt-get install netpbm

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 -color path/to/input_file.pam > path/to/output_file.tiff

© tl;dr; authors and contributors