{
    "mode": "man",
    "parameter": "pgmenhance",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pgmenhance/1/json",
    "generated": "2026-08-13T08:04:01Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "pgmenhance - edge-enhance a PGM image\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "pgmenhance",
                    "content": "[-N]\n\n[pgmfile]\n\n"
                }
            ]
        },
        "DESCRIPTION": {
            "content": "This program is part of Netpbm(1).\n\npgmenhance reads a PGM image as input, enhances the edges, and writes a PGM image as output.\n\nThe  edge enhancing technique is taken from Philip R. Thompson's \"xim\" program, which in turn\ntook it from section 6 of \"Digital Halftones by Dot Diffusion\", D. E. Knuth, ACM  Transaction\non  Graphics  Vol. 6, No. 4, October 1987, which in turn got it from two 1976 papers by J. F.\nJarvis et. al.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "In addition to the options common to all programs based on libnetpbm  (most  notably  -quiet,\nsee \u001b]8;;index.html#commonoptions\u001b\\ Common Options\u001b]8;;\u001b\\ ), pgmenhance recognizes the following command line option:\n\n\n",
            "subsections": [
                {
                    "name": "-_",
                    "content": "The  optional  -N  option should be a digit from 1 to 9.  1 is the lowest level of en‐\nhancement; 9 is the highest.  The default is 9.\n\n\n\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "pamedge(1), pgm(1)\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 1989 by Jef Poskanzer.\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/pgmenhance.html\n\nnetpbm documentation                       13 January 1989                 Pgmenhance User Manual(1)",
            "subsections": []
        }
    },
    "summary": "pgmenhance - edge-enhance a PGM image",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "The optional -N option should be a digit from 1 to 9. 1 is the lowest level of en‐ hancement; 9 is the highest. The default is 9."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "pamedge",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pamedge/1/json"
        },
        {
            "name": "pgm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pgm/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Edge-enhance a PGM image.",
        "examples": [
            {
                "description": "Edge-enhance a PGM image",
                "command": "pgmenhance {{path/to/image.pgm}} > {{path/to/output.pgm}}"
            },
            {
                "description": "Specify the level of enhancement",
                "command": "pgmenhance -{{1..9}} {{path/to/image.pgm}} > {{path/to/output.pgm}}"
            }
        ]
    }
}