# xwdtopnm(1) - man - phpman

> **TLDR:** Convert an X11 or X10 window dump file to PNM.
>
- Convert a XWD image file to PBM:
  `xwdtopnm {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}`
- Display information about the conversion process:
  `xwdtopnm {{-verb|-verbose}} {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}`
- Display the contents of the X11 header of the input file:
  `xwdtopnm {{-h|-headerdump}} {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}`

*Source: tldr-pages*

---

[xwdtopnm(1)](https://www.chedong.com/phpMan.php/man/xwdtopnm/1/markdown)                            General Commands Manual                           [xwdtopnm(1)](https://www.chedong.com/phpMan.php/man/xwdtopnm/1/markdown)



## NAME
       xwdtopnm - convert a X11 or X10 window dump file into a portable anymap

## SYNOPSIS
       **xwdtopnm** [_xwdfile_]

## DESCRIPTION
       Reads  a  X11  or  X10 window dump file as input.  Produces a portable anymap as output.  The
       type of the output file depends on the input file - if it's black &  white,  a  _pbm_  file  is
       written,  else  if  it's  grayscale a _pgm_ file, else a _ppm_ file.  The program tells you which
       type it is writing.

       Using this program, you can convert anything on an X workstation's  screen  into  an  anymap.
       Just  display whatever you're interested in, do an xwd, run it through xwdtopnm, and then use
       pnmcut to select the part you want.

## BUGS
       I haven't tested this tool with very many configurations, so there are probably bugs.  Please
       let me know if you find any.

## SEE ALSO
       [pnmtoxwd(1)](https://www.chedong.com/phpMan.php/man/pnmtoxwd/1/markdown), [pnm(5)](https://www.chedong.com/phpMan.php/man/pnm/5/markdown), [xwd(1)](https://www.chedong.com/phpMan.php/man/xwd/1/markdown)

## AUTHOR
       Copyright (C) 1989, 1991 by Jef Poskanzer.



                                           11 January 1991                               [xwdtopnm(1)](https://www.chedong.com/phpMan.php/man/xwdtopnm/1/markdown)
