{
    "content": [
        {
            "type": "text",
            "text": "# pnmsmooth(1) (man)\n\n## TLDR\n\n> Smooth out a PNM image.\n\n- Smooth out a PNM image using a convolution matrix of size 3x3:\n  `pnmsmooth {{path/to/input.pnm}} > {{path/to/output.pnm}}`\n- Smooth out a PNM image using a convolution matrix of size width times height:\n  `pnmsmooth {{-w|-width}} {{width}} {{-h|-height}} {{height}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** pnmsmooth - smooth out an image\n\n**Synopsis:** pnmsmooth [-size width height] [-dump dumpfile] [pnmfile]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | — | — | Specifies the size of the convolution matrix. Default size is a 3x3 matrix. Width and height sizes must be odd. Maximum  |\n| — | — | — | Generates and saves the convolution file only. Use of this option does not invoke pn‐ mconvol. |\n\n## See Also\n\n- pnmconvol(1)\n- pnm(5)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (4 lines)\n- **OPTIONS** (1 lines) — 2 subsections\n  - -size width height (5 lines)\n  - -dump dumpfile (3 lines)\n- **SEE ALSO** (2 lines)\n- **AUTHORS** (6 lines)\n\n## Full Content\n\n### NAME\n\npnmsmooth - smooth out an image\n\n### SYNOPSIS\n\npnmsmooth [-size width height] [-dump dumpfile] [pnmfile]\n\n### DESCRIPTION\n\nSmooths  out  an  image by replacing each pixel with the average of its width X height neigh‐\nbors.  It is implemented as a C progam that generates a PGM convolution matrix and  then  in‐\nvokes pnmconvol.\n\n### OPTIONS\n\n#### -size width height\n\nSpecifies  the  size  of the convolution matrix.  Default size is a 3x3 matrix.  Width\nand height sizes must be odd.  Maximum size of convolution matrix is  limited  by  the\nmaximum  value  for a pixel such that (width * height * 2) must not exceed the maximum\npixel value.\n\n#### -dump dumpfile\n\nGenerates and saves the convolution file only.  Use of this option does not invoke pn‐\nmconvol.\n\n### SEE ALSO\n\npnmconvol(1), pnm(5)\n\n### AUTHORS\n\nCopyright (C) 1989, 1991 by Jef Poskanzer.\nConverted from script to C program December 1994 by Mike Burns (burns@chem.psu.edu).\n\n\n\n4 December 1994                              pnmsmooth(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "pnmsmooth",
        "section": "1",
        "mode": "man",
        "summary": "pnmsmooth - smooth out an image",
        "synopsis": "pnmsmooth [-size width height] [-dump dumpfile] [pnmfile]",
        "tldr_summary": "Smooth out a PNM image.",
        "tldr_examples": [
            {
                "description": "Smooth out a PNM image using a convolution matrix of size 3x3",
                "command": "pnmsmooth {{path/to/input.pnm}} > {{path/to/output.pnm}}"
            },
            {
                "description": "Smooth out a PNM image using a convolution matrix of size width times height",
                "command": "pnmsmooth {{-w|-width}} {{width}} {{-h|-height}} {{height}} {{path/to/input.pnm}} > {{path/to/output.pnm}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Specifies the size of the convolution matrix. Default size is a 3x3 matrix. Width and height sizes must be odd. Maximum size of convolution matrix is limited by the maximum value for a pixel such that (width * height * 2) must not exceed the maximum pixel value."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Generates and saves the convolution file only. Use of this option does not invoke pn‐ mconvol."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "pnmconvol",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnmconvol/1/json"
            },
            {
                "name": "pnm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pnm/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-size width height",
                        "lines": 5
                    },
                    {
                        "name": "-dump dumpfile",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}