ppmtopcx

Convert a PPM image to a PCX file. More information: <https://netpbm.sourceforge.net/doc/ppmtopcx.html>.

Install

All systems
curl cmd.cat/ppmtopcx.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 PPM image to a PCX file. More information: <https://netpbm.sourceforge.net/doc/ppmtopcx.html>.

  • Convert a PPM image to a PCX file:
    ppmtopcx path/to/file.ppm > path/to/file.pcx
  • Produce a PCX file with the specified color depth:
    ppmtopcx -8bit|24bit path/to/file.ppm > path/to/file.pcx

© tl;dr; authors and contributors