{
    "mode": "man",
    "parameter": "ppmtotga",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/ppmtotga/1/json",
    "generated": "2026-06-03T00:22:03Z",
    "synopsis": "ppmtotga [-mono|-cmap|-rgb] [-norle] [ppmfile]",
    "sections": {
        "NAME": {
            "content": "ppmtotga - convert portable pixmap into a TrueVision Targa file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ppmtotga [-mono|-cmap|-rgb] [-norle] [ppmfile]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Reads a portable pixmap as input.  Produces a TrueVision Targa file as output.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-mono",
                    "content": "a portable graymap.\n"
                },
                {
                    "name": "-cmap",
                    "content": "a portable graymap or a portable pixmap containing no more than 256 distinct colors.\n"
                },
                {
                    "name": "-rgb",
                    "content": ""
                },
                {
                    "name": "-norle",
                    "content": "length encoded files.\n\nAll flags can be abbreviated to their shortest unique prefix.  If no file type  is  specified\nthe  most highly constained compatible type is used, where monochrome is more constained than\ncolormapped which is in turn more constained than unmapped.\n"
                }
            ]
        },
        "BUGS": {
            "content": "Does not support all possible Targa file types.  Should really be in PNM, not PPM.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "tgatoppm(1), ppm(5)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 1989, 1991 by Mark Shand and Jef Poskanzer.\n\n\n\n28 October 1991                               ppmtotga(1)",
            "subsections": []
        }
    },
    "summary": "ppmtotga - convert portable pixmap into a TrueVision Targa file",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "a portable graymap."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "a portable graymap or a portable pixmap containing no more than 256 distinct colors."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "length encoded files. All flags can be abbreviated to their shortest unique prefix. If no file type is specified the most highly constained compatible type is used, where monochrome is more constained than colormapped which is in turn more constained than unmapped."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "tgatoppm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/tgatoppm/1/json"
        },
        {
            "name": "ppm",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/ppm/5/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "This command has been superseded by `pamtotga`.",
        "examples": [
            {
                "description": "View documentation for the current command",
                "command": "tldr pamtotga"
            }
        ]
    }
}