snippetbashTip
xpmtoppm — Convert an X11 pixmap to a PPM image. More information: <https://netpbm.sourceforge.net/doc/xpmtoppm
Viewed 0 times
xpmtoppmcommandconvertpixmapcliimagex11ppm
Problem
How to use the
xpmtoppm command: Convert an X11 pixmap to a PPM image. More information: <https://netpbm.sourceforge.net/doc/xpmtoppm.html>.Solution
xpmtoppm — Convert an X11 pixmap to a PPM image. More information: <https://netpbm.sourceforge.net/doc/xpmtoppm.html>.Convert an XPM image to a PPM image:
xpmtoppm {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}Store the transparency mask of the input image in the specified file:
xpmtoppm {{[-a|--alphaout]}} {{path/to/alpha_file.pbm}} {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}Code Snippets
Convert an XPM image to a PPM image
xpmtoppm {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}Store the transparency mask of the input image in the specified file
xpmtoppm {{[-a|--alphaout]}} {{path/to/alpha_file.pbm}} {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}Context
tldr-pages: common/xpmtoppm
Revisions (0)
No revisions yet.