{
    "mode": "man",
    "parameter": "xpmtoppm",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/xpmtoppm/1/json",
    "generated": "2026-06-03T12:17:15Z",
    "synopsis": "xpmtoppm [--alphaout={alpha-filename,-}] [-verbose] [xpmfile]",
    "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": []
        }
    },
    "summary": "xpmtoppm - convert an X11 pixmap into a portable pixmap",
    "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"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Convert an X11 pixmap to a PPM image.",
        "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}}"
            }
        ]
    }
}