CmdID

CmdID / Commands

ppmtoxpm

Convert a PPM image to an X11 version 3 pixmap. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Convert a PPM image to an XPM image

ppmtoxpm path/to/input_file.ppm >path/to/output_file.xpmIdentify

Specify the prefix string in the output XPM image

ppmtoxpm -name prefix_string path/to/input_file.ppm >path/to/output_file.xpmIdentify

In the output XPM file, specify colors by their hexadecimal code instead of their name

ppmtoxpm -hexonly path/to/input_file.ppm >path/to/output_file.xpmIdentify

Use the specified PGM file as a transparency mask

ppmtoxpm -alphamask path/to/alpha_file.pgm path/to/input_file.ppm >path/to/output_file.xpmIdentify