ppmtoxpm Command Examples

Convert a PPM image to an X11 version 3 pixmap. More information: https://netpbm.sourceforge.net/doc/ppmtoxpm.html.

ppmtoxpm {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}

ppmtoxpm -name {{prefix_string}} {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}

ppmtoxpm -hexonly {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}

ppmtoxpm -alphamask {{path/to/alpha_file.pgm}} {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}