mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
619 B
Plaintext
22 lines
619 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# pnmtoxwd
|
|
|
|
> Convert a PNM file into an X11 window dump file.
|
|
> More information: <https://netpbm.sourceforge.net/doc/pnmtoxwd.html>.
|
|
|
|
- Convert a PNM image file to XWD:
|
|
|
|
`pnmtoxwd {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}`
|
|
|
|
- Produce the output in the DirectColor format:
|
|
|
|
`pnmtoxwd {{[-d|-directcolor]}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}`
|
|
|
|
- Set the color depth of the output to b bits:
|
|
|
|
`pnmtoxwd {{[-ps|-pseudodepth]}} {{b}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}`
|