xwdtopnm

Convert an X11 or X10 window dump file to PNM. More information: https://netpbm.sourceforge.net/doc/xwdtopnm.html.

xwdtopnm path/to/input_file.xwd > path/to/output_file.pnm

xwdtopnm -verbose path/to/input_file.xwd > path/to/output_file.pnm

xwdtopnm -headerdump path/to/input_file.xwd > path/to/output_file.pnm