CmdID / Commands
xpmtoppm
Convert an X11 pixmap to a PPM image. tldr-pages
On several platforms
Convert an XPM image to a PPM image
xpmtoppm path/to/input_file.xpm >path/to/output_file.ppmIdentify
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.ppmIdentify