Files
cheatsheet-tldr/tldr/ximtoppm

18 lines
503 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ximtoppm
> Convert a XIM file to a PPM image.
> More information: <https://netpbm.sourceforge.net/doc/ximtoppm.html>.
- Convert an XIM image to a PPM image:
`ximtoppm {{path/to/input_file.xim}} > {{path/to/output_file.ppm}}`
- Store the transparency mask of the input image in the specified file:
`ximtoppm --alphaout {{path/to/alpha_file.pbm}} {{path/to/input_file.xim}} > {{path/to/output_file.ppm}}`