ppmtoxpm

Convert PPM to X11 pixmap format

TLDR

Convert PPM to XPM
$ ppmtoxpm [input.ppm] > [output.xpm]
Convert with custom name
$ ppmtoxpm -name [icon] [input.ppm] > [icon.xpm]

SYNOPSIS

ppmtoxpm [options] [file]

DESCRIPTION

ppmtoxpm converts PPM images to X11 pixmap format (.xpm). XPM is a C source format for color images in X11. Part of Netpbm toolkit.

PARAMETERS

-name name

Variable name in output.
-hexonly
Use hex color codes only.
-rgb file
RGB color name file.

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

xpmtoppm(1), pbmtoxbm(1)