pnmtoxwd

Convert a PNM file into an X11 window dump file. More information: <https://netpbm.sourceforge.net/doc/pnmtoxwd.html>.

Install

All systems
curl cmd.cat/pnmtoxwd.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 PNM file into an X11 window dump file. More information: <https://netpbm.sourceforge.net/doc/pnmtoxwd.html>.

  • Convert a PNM image file to XWD:
    pnmtoxwd path/to/input_file.pnm > path/to/output_file.xwd
  • Produce the output in the DirectColor format:
    pnmtoxwd -directcolor path/to/input_file.pnm > path/to/output_file.xwd
  • Set the color depth of the output to b bits:
    pnmtoxwd -pseudodepth b path/to/input_file.pnm > path/to/output_file.xwd

© tl;dr; authors and contributors