Options (3)
-nbooleanSpecify the prefix string in the output XPM image
Example:
ppmtoxpm {{[-n|-name]}} {{prefix_string}} {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}-hbooleanIn the output XPM file, specify colors by their hexadecimal code instead of their name
Example:
ppmtoxpm {{[-h|-hexonly]}} {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}-abooleanUse the specified PGM file as a transparency mask
Example:
ppmtoxpm {{[-a|-alphamask]}} {{path/to/alpha_file.pgm}} {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}Examples (4)
Convert a PPM image to a XPM image
ppmtoxpm path/to/input_file.ppm > path/to/output_file.xpmSpecify the prefix string in the output XPM image
ppmtoxpm [-n|-name] prefix_string path/to/input_file.ppm > path/to/output_file.xpmIn the output XPM file, specify colors by their hexadecimal code instead of their name
ppmtoxpm [-h|-hexonly] path/to/input_file.ppm > path/to/output_file.xpmUse the specified PGM file as a transparency mask
ppmtoxpm [-a|-alphamask] path/to/alpha_file.pgm path/to/input_file.ppm > path/to/output_file.xpmmade by @shridhargupta | data from tldr-pages