LinuxCommandLibrary

pngtopnm

Convert PNG images to PNM format

TLDR

Convert PNG to PNM

$ pngtopnm [input.png] > [output.pnm]
copy
Extract alpha to separate file
$ pngtopnm -alpha [input.png] > [alpha.pgm]
copy

SYNOPSIS

pngtopnm [options] [file]

DESCRIPTION

pngtopnm converts PNG images to PNM (PBM/PGM/PPM) format. Part of Netpbm toolkit for image conversion. Output type depends on PNG color depth.

PARAMETERS

-alpha

Extract alpha channel as PGM.
-mix
Mix with background color.
-background color
Background color for mixing.
-verbose
Verbose output.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community