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.
-alpha mode
Alpha channel handling: outnone, outalpha, outbgcolor, outtransparent (default: outalpha).
-transparent color
Set fully transparent color.
-background color
Background color for alpha blending.
-gamma value
Gamma value for the image.
-notext
Omit PAM text comments from PNG text chunks.

SEE ALSO

Copied to clipboard
Kai