xpmtoppm

Convert an X11 pixmap to a PPM image. More information: <https://netpbm.sourceforge.net/doc/xpmtoppm.html>.

Install

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

  • Convert an XPM image to a PPM image:
    xpmtoppm path/to/input_file.xpm > path/to/output_file.ppm
  • Store the transparency mask of the input image in the specified file:
    xpmtoppm --alphaout path/to/alpha_file.pbm path/to/input_file.xpm > path/to/output_file.ppm

© tl;dr; authors and contributors