{
    "mode": "man",
    "parameter": "pgmtopgm",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pgmtopgm/1/json",
    "generated": "2026-10-06T10:04:49Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "pgmtopgm - copy PGM image\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "pgmtopgm",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "This program is part of Netpbm(1).\n\npgmtopgm  simply copies a PGM image from Standard Input to Standard Output.  This may seem an\nunnecessary duplication of cat, but remember that a PGM program can read a PBM image as if it\nwere PGM.  So pgmtopgm can read either a PBM or PGM image and produce a PGM image as output.\n\nEven that is of limited usefulness because of the fact that almost any program to  which  you\nwould  feed  the  resulting PGM image could also just take the original image directly.  How‐\never, sometimes you really need a true PGM image.\n\nWhen you know you have a PBM image and want a PGM image, pbmtopgm is a more general way to do\nthat conversion.\n\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "There are no command line options defined specifically for pgmtopgm, but  it  recognizes  the\noptions common to all programs based on libnetpbm (See  Common Options .)\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "ppmtoppm(1), pamtopam(1), pamtopnm(1), pbmtopgm(1), pbm(1), pgm(1),\n\n",
            "subsections": []
        },
        "HISTORY": {
            "content": "This program was added to Netpbm in Release 10.9 (September 2002).\n",
            "subsections": []
        },
        "DOCUMENT SOURCE": {
            "content": "This  manual  page  was  generated by the Netpbm tool 'makeman' from HTML source.  The master\ndocumentation is at\n\nhttp://netpbm.sourceforge.net/doc/pgmtopgm.html\n\nnetpbm documentation                       September 2002                    Pgmtopgm User Manual(1)",
            "subsections": []
        }
    },
    "summary": "pgmtopgm - copy PGM image",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "ppmtoppm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ppmtoppm/1/json"
        },
        {
            "name": "pamtopam",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pamtopam/1/json"
        },
        {
            "name": "pamtopnm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pamtopnm/1/json"
        },
        {
            "name": "pbmtopgm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pbmtopgm/1/json"
        },
        {
            "name": "pbm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pbm/1/json"
        },
        {
            "name": "pgm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pgm/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Copy a PGM image file.",
        "examples": [
            {
                "description": "Copy PGM file from `stdin` to `stderr`",
                "command": "pgmtopgm"
            },
            {
                "description": "Display version",
                "command": "pgmtopgm -version"
            }
        ]
    }
}