mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
18 lines
515 B
Plaintext
18 lines
515 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|