commands.sh

pnmtoxwd

all

Convert a PNM file into an X11 window dump file.

More info →

Options (2)

-dboolean

Produce the output in the DirectColor format

Example: pnmtoxwd {{[-d|-directcolor]}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}
boolean

Set the color depth of the output to b bits

Example: pnmtoxwd {{[-ps|-pseudodepth]}} {{b}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}

Examples (3)

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
made by @shridhargupta | data from tldr-pages