{
    "content": [
        {
            "type": "text",
            "text": "# ppmtopgm(1) (man)\n\n## NAME\n\nppmtopgm - convert a portable pixmap into a portable graymap\n\n## SYNOPSIS\n\nppmtopgm [ppmfile]\n\n## DESCRIPTION\n\nReads  a  portable  pixmap as input.  Produces a portable graymap as output.  The output is a\n\"black and white\" rendering of the original image, as in a black and white  photograph.   The\nquantization formula used is .299 r + .587 g + .114 b.\n\n## TLDR\n\n> Convert a PPM image to a PGM image.\n\n- Convert PPM image to PGM image:\n  `ppmtopgm {{path/to/file.ppm}} > {{path/to/file.pgm}}`\n- Display version:\n  `ppmtopgm {{-v|-version}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **QUOTE**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "ppmtopgm",
        "section": "1",
        "mode": "man",
        "summary": "ppmtopgm - convert a portable pixmap into a portable graymap",
        "synopsis": "ppmtopgm [ppmfile]",
        "tldr_summary": "Convert a PPM image to a PGM image.",
        "tldr_examples": [
            {
                "description": "Convert PPM image to PGM image",
                "command": "ppmtopgm {{path/to/file.ppm}} > {{path/to/file.pgm}}"
            },
            {
                "description": "Display version",
                "command": "ppmtopgm {{-v|-version}}"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "pgmtoppm",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pgmtoppm/1/json"
            },
            {
                "name": "ppmtorgb3",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ppmtorgb3/1/json"
            },
            {
                "name": "rgb3toppm",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/rgb3toppm/1/json"
            },
            {
                "name": "ppmdist",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ppmdist/1/json"
            },
            {
                "name": "ppm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/ppm/5/json"
            },
            {
                "name": "pgm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pgm/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "QUOTE",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "ppmtopgm - convert a portable pixmap into a portable graymap\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "ppmtopgm [ppmfile]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Reads  a  portable  pixmap as input.  Produces a portable graymap as output.  The output is a\n\"black and white\" rendering of the original image, as in a black and white  photograph.   The\nquantization formula used is .299 r + .587 g + .114 b.\n\nNote  that  although  there is a pgmtoppm program, it is not necessary for simple conversions\nfrom pgm to ppm , because any ppm program can read pgm (and pbm ) files automatically.   pgm‐‐\ntoppm  is  for  colorizing a pgm file.  Also, see ppmtorgb3 for a different way of converting\ncolor to gray.  And ppmdist generates a grayscale image from a color image, but in a way that\nmakes  it  easy to differentiate the original colors, not necessarily a way that looks like a\nblack and white photograph.\n\n",
                "subsections": []
            },
            "QUOTE": {
                "content": "Cold-hearted orb that rules the night\nRemoves the colors from our sight\nRed is gray, and yellow white\nBut we decide which is right\nAnd which is a quantization error.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pgmtoppm(1),ppmtorgb3(1),rgb3toppm(1),ppmdist(1),ppm(5),pgm(5)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Copyright (C) 1989 by Jef Poskanzer.\n\n\n\n10 April 2000                                ppmtopgm(1)",
                "subsections": []
            }
        }
    }
}