ppmtopcx

Convert PPM images to PCX format

TLDR

Convert PPM to PCX
$ ppmtopcx [input.ppm] > [output.pcx]
Convert with 256 colors
$ ppmtopcx -256 [input.ppm] > [output.pcx]
Convert with 24-bit color
$ ppmtopcx -24bit [input.ppm] > [output.pcx]

SYNOPSIS

ppmtopcx [options] [file]

DESCRIPTION

ppmtopcx converts PPM images to PCX format. PCX is an older bitmap format commonly used in DOS applications. Part of Netpbm toolkit.

PARAMETERS

-256

256 color palette.
-24bit
24-bit true color.
-packed
Packed pixel mode.

INSTALL

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

SEE ALSO

pcxtoppm(1), ppmtobmp(1)