Options (2)
-dbooleanProduce the output in the DirectColor format
Example:
pnmtoxwd {{[-d|-directcolor]}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}booleanSet 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.xwdProduce the output in the DirectColor format
pnmtoxwd [-d|-directcolor] path/to/input_file.pnm > path/to/output_file.xwdSet the color depth of the output to b bits
pnmtoxwd [-ps|-pseudodepth] b path/to/input_file.pnm > path/to/output_file.xwdmade by @shridhargupta | data from tldr-pages