{
    "content": [
        {
            "type": "text",
            "text": "# xpmtoppm (man)\n\n## NAME\n\nxpmtoppm - convert an X11 pixmap into a portable pixmap\n\n## SYNOPSIS\n\nxpmtoppm [--alphaout={alpha-filename,-}] [-verbose] [xpmfile]\n\n## DESCRIPTION\n\nReads an X11 pixmap (XPM version 1 or 3) as input.  Produces a PPM file as output.\n\n## TLDR\n\n> Convert an X11 pixmap to a PPM image.\n\n- Convert an XPM image to a PPM image:\n  `xpmtoppm {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}`\n- Store the transparency mask of the input image in the specified file:\n  `xpmtoppm {{-a|--alphaout}} {{path/to/alpha_file.pbm}} {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (1 subsections)\n- **LIMITATIONS**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "xpmtoppm",
        "section": "",
        "mode": "man",
        "summary": "xpmtoppm - convert an X11 pixmap into a portable pixmap",
        "synopsis": "xpmtoppm [--alphaout={alpha-filename,-}] [-verbose] [xpmfile]",
        "tldr_summary": "Convert an X11 pixmap to a PPM image.",
        "tldr_examples": [
            {
                "description": "Convert an XPM image to a PPM image",
                "command": "xpmtoppm {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}"
            },
            {
                "description": "Store the transparency mask of the input image in the specified file",
                "command": "xpmtoppm {{-a|--alphaout}} {{path/to/alpha_file.pbm}} {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": "--verbose",
                "arg": null,
                "description": "xpmtoppm prints information about its processing on Standard Error."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "ppmtoxpm",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ppmtoxpm/1/json"
            },
            {
                "name": "pnmcomp",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnmcomp/1/json"
            },
            {
                "name": "ppm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/ppm/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 12,
                "subsections": [
                    {
                        "name": "--verbose",
                        "lines": 3,
                        "long": "--verbose"
                    }
                ]
            },
            {
                "name": "LIMITATIONS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 9,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "xpmtoppm - convert an X11 pixmap into a portable pixmap\n\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "xpmtoppm [--alphaout={alpha-filename,-}] [-verbose] [xpmfile]\n\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Reads an X11 pixmap (XPM version 1 or 3) as input.  Produces a PPM file as output.\n\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "--alphaout=alpha-filename\nxpmtoppm  creates  a  PBM file containing the transparency mask for the image.  If the\ninput image doesn't contain transparency information, the alpha-filename file contains\nall  white  (opaque) alpha values.  If you don't specify --alphaout, xpmtoppm does not\ngenerate an alpha file, and if the input image has transparency information,  xpmtoppm\nsimply discards it.\n\nIf  you specify - as the filename, xpmtoppm writes the alpha output to Standard Output\nand discards the image.\n\nSee pnmcomp(1) for one way to use the alpha output file.\n",
                "subsections": [
                    {
                        "name": "--verbose",
                        "content": "xpmtoppm prints information about its processing on Standard Error.\n\n",
                        "long": "--verbose"
                    }
                ]
            },
            "LIMITATIONS": {
                "content": "The support to XPM version 3 is limited. Comments can only be single lines and there must  be\nfor every pixel a default colorname for a color type visual.\n\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "ppmtoxpm(1), pnmcomp(1), ppm(5)\n\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Copyright (C) 1991 by Jef Poskanzer.\n\nUpgraded to support XPM version 3 by\nArnaud Le Hors (lehors@mirsa.inria.fr)\nTue Apr 9 1991\n\n\n\n06 May 2001                                 xpmtoppm(1)",
                "subsections": []
            }
        }
    }
}