snippetbashTip
pnmtoxwd — Convert a PNM file into an X11 window dump file. More information: <https://netpbm.sourceforge.net/d
Viewed 0 times
commandconvertclifileintox11pnmpnmtoxwd
Problem
How to use the
pnmtoxwd command: Convert a PNM file into an X11 window dump file. More information: <https://netpbm.sourceforge.net/doc/pnmtoxwd.html>.Solution
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}}Code Snippets
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}}Context
tldr-pages: common/pnmtoxwd
Revisions (0)
No revisions yet.