{
    "mode": "man",
    "parameter": "ppmtopcx",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/ppmtopcx/1/json",
    "generated": "2026-05-30T05:14:53Z",
    "synopsis": "ppmtopcx [-24bit] [-packed] [-xpos=cols] [-ypos=rows] [ppmfile]",
    "sections": {
        "NAME": {
            "content": "ppmtopcx - convert a portable pixmap into a PCX file\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ppmtopcx [-24bit] [-packed] [-xpos=cols] [-ypos=rows] [ppmfile]\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Reads a PPM image as input.  Produces a PCX file as output.  The type of the PCX file depends\non the number of colors in the pixmap:\n\n16 colors or less:\n1 bit/pixel, 1-4 planes.\n\n256 colors or less:\n8 bits/pixel, 1 plane, colormap at the end of the file.\n\nMore than 256 colors:\n24bit truecolor file (8 bits/pixel, 3 planes).\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-24bit",
                    "content": ""
                },
                {
                    "name": "-packed",
                    "content": "Use \"packed pixel\" format for files with 16 colors or less: 1, 2, or 4  bits/pixel,  1\nplane.\n"
                },
                {
                    "name": "-xpos=",
                    "content": ""
                },
                {
                    "name": "-ypos=",
                    "content": "These  options  set the position of the image in some field (e.g. on a screen) in col‐\numns to the right of the left edge and rows below the top edge.  The PCX  format  con‐\ntains  image position information.  Don't confuse this with the position of an area of\ninterest within the image.  For example, using pnmpad to add a 10 pixel left border to\nan  image  and then converting that image to PCX with xpos = 0 is not the same as con‐\nverting the original image to PCX and setting xpos = 10.\n\nThe values may be from -32767 to 32768.\n\nThe default for each is zero.\n\n\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "pcxtoppm(1), ppm(5)\n\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Copyright (C) 1994 by Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de)\nBased on previous work by Michael Davidson.\n\n\n\n12 December 1994                               ppmtopcx(1)",
            "subsections": []
        }
    },
    "summary": "ppmtopcx - convert a portable pixmap into a PCX file",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Use \"packed pixel\" format for files with 16 colors or less: 1, 2, or 4 bits/pixel, 1 plane."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "These options set the position of the image in some field (e.g. on a screen) in col‐ umns to the right of the left edge and rows below the top edge. The PCX format con‐ tains image position information. Don't confuse this with the position of an area of interest within the image. For example, using pnmpad to add a 10 pixel left border to an image and then converting that image to PCX with xpos = 0 is not the same as con‐ verting the original image to PCX and setting xpos = 10. The values may be from -32767 to 32768. The default for each is zero."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "pcxtoppm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pcxtoppm/1/json"
        },
        {
            "name": "ppm",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/ppm/5/json"
        }
    ]
}