LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pamtopng

Convert PAM images to PNG format

TLDR

Convert PAM to PNG
$ pamtopng [input.pam] > [output.png]
copy
Convert with maximum compression
$ pamtopng -compression [9] [input.pam] > [output.png]
copy
Create interlaced PNG
$ pamtopng -interlace [input.pam] > [output.png]
copy
Convert with transparency
$ pamtopng -transparent [white] [input.pam] > [output.png]
copy

SYNOPSIS

pamtopng [options] [file]

DESCRIPTION

pamtopng converts Netpbm PAM images to PNG format. It is the preferred tool over pnmtopng for images with alpha channels, as it properly handles PAM's native alpha support. Part of the Netpbm toolkit.Input is read from the specified file or standard input. Output is written to standard output.

PARAMETERS

-compression n

Compression level (0-9, default: 6).
-interlace
Create interlaced (Adam7) PNG for progressive loading.
-transparent color
Set fully transparent color.
-background color
Background color for alpha blending.
-gamma value
Gamma value for the image.
-srgbintent intent
sRGB rendering intent: absolute, relative, perceptual, or saturation.
-text file
Add tEXt chunks from a text file.
-verbose
Print detailed progress information to standard error.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

SEE ALSO

Copied to clipboard
Kai