{
    "mode": "man",
    "parameter": "xwdtopnm",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/xwdtopnm/1/json",
    "generated": "2026-06-03T01:49:03Z",
    "synopsis": "xwdtopnm [xwdfile]",
    "sections": {
        "NAME": {
            "content": "xwdtopnm - convert a X11 or X10 window dump file into a portable anymap\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "xwdtopnm [xwdfile]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Reads  a  X11  or  X10 window dump file as input.  Produces a portable anymap as output.  The\ntype of the output file depends on the input file - if it's black &  white,  a  pbm  file  is\nwritten,  else  if  it's  grayscale a pgm file, else a ppm file.  The program tells you which\ntype it is writing.\n\nUsing this program, you can convert anything on an X workstation's  screen  into  an  anymap.\nJust  display whatever you're interested in, do an xwd, run it through xwdtopnm, and then use\npnmcut to select the part you want.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "I haven't tested this tool with very many configurations, so there are probably bugs.  Please\nlet me know if you find any.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pnmtoxwd(1), pnm(5), xwd(1)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 1989, 1991 by Jef Poskanzer.\n\n\n\n11 January 1991                               xwdtopnm(1)",
            "subsections": []
        }
    },
    "summary": "xwdtopnm - convert a X11 or X10 window dump file into a portable anymap",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pnmtoxwd",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pnmtoxwd/1/json"
        },
        {
            "name": "pnm",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/pnm/5/json"
        },
        {
            "name": "xwd",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/xwd/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Convert an X11 or X10 window dump file to PNM.",
        "examples": [
            {
                "description": "Convert a XWD image file to PBM",
                "command": "xwdtopnm {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}"
            },
            {
                "description": "Display information about the conversion process",
                "command": "xwdtopnm {{-verb|-verbose}} {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}"
            },
            {
                "description": "Display the contents of the X11 header of the input file",
                "command": "xwdtopnm {{-h|-headerdump}} {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}"
            }
        ]
    }
}