{
    "content": [
        {
            "type": "text",
            "text": "# pamstretch(1) (man)\n\n**Summary:** pamstretch - scale up a PNM or PAM image by interpolating between pixels\n\n**Synopsis:** pamstretch [-xscale=X] [-yscale=Y]\n[-blackedge] [-dropedge] N [infile]\nYou  can use the minimum unique abbreviation of the options.  You can use two hyphens instead\nof one.  You can separate an option name from its value with white space instead of an equals\nsign.\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | — | — | This is the horizontal scale factor. If you don't specify this, but do specify a ver‐ tical scale factor, the horizontal |\n| — | — | — | This is the vertical scale factor. If you don't specify this, but do specify a hori‐ zontal scale factor, the vertical s |\n| — | — | — | interpolate to black at right/bottom edges. |\n| — | — | — | drop one (source) pixel at right/bottom edges. This is arguably more logical than the default behaviour, but it means pr |\n\n## See Also\n\n- pamstretch-gen(1)\n- pnmenlarge(1)\n- pnmscale(1)\n- pnmnlfilt(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (8 lines)\n- **DESCRIPTION** (17 lines)\n- **PARAMETERS** (1 lines) — 1 subsections\n  - -yscale (1 lines)\n- **OPTIONS** (1 lines) — 4 subsections\n  - -xscale= (4 lines)\n  - -yscale= (4 lines)\n  - -blackedge (1 lines)\n  - -dropedge (3 lines)\n- **BUGS** (3 lines)\n- **SEE ALSO** (2 lines)\n- **AUTHOR** (5 lines)\n\n## Full Content\n\n### NAME\n\npamstretch - scale up a PNM or PAM image by interpolating between pixels\n\n### SYNOPSIS\n\npamstretch [-xscale=X] [-yscale=Y]\n[-blackedge] [-dropedge] N [infile]\n\nYou  can use the minimum unique abbreviation of the options.  You can use two hyphens instead\nof one.  You can separate an option name from its value with white space instead of an equals\nsign.\n\n### DESCRIPTION\n\npamstretch  scales  up  pictures by integer values, either vertically, horizontally, or both.\npamstretch differs from pnmscale and pnmenlarge in that when it inserts the  additional  rows\nand columns, instead of making the new row or column a copy of its neighbor, pamstretch makes\nthe new row or column an interpolation between its neighbors.  In some images, this  produces\nbetter looking output.\n\nTo scale up to non-integer pixel sizes, e.g. 2.5, try pamstretch-gen(1) instead.\n\nOptions let you select alternative methods of dealing with the right/bottom edges of the pic‐\nture.  Since the interpolation is done between the top-left corners of the scaled-up  pixels,\nit's  not  obvious what to do with the right/bottom edges.  The default behaviour is to scale\nthose up without interpolation (more precisely, the right edge is  only  interpolated  verti‐\ncally, and the bottom edge is only interpolated horizontally), but there are two other possi‐\nbilities, selected by the blackedge and dropedge options.\n\n### PARAMETERS\n\nThe N parameter is the scale factor.  It is valid  only  if  you  don't  specify  -xscale  or\n\n#### -yscale\n\n### OPTIONS\n\n#### -xscale=\n\nThis is the horizontal scale factor.  If you don't specify this, but do specify a ver‐\ntical scale factor, the horizontal scale factor is 1.\n\n#### -yscale=\n\nThis is the vertical scale factor.  If you don't specify this, but do specify a  hori‐\nzontal scale factor, the vertical scale factor is 1.\n\n#### -blackedge\n\ninterpolate to black at right/bottom edges.\n\n#### -dropedge\n\ndrop  one (source) pixel at right/bottom edges. This is arguably more logical than the\ndefault behaviour, but it means producing output which is a slightly odd size.\n\n### BUGS\n\nUsually produces fairly ugly output for PBMs. For most PBM input you'll probably want to  re‐\nduce the `noise' first using something like pnmnlfilt(1).\n\n### SEE ALSO\n\npamstretch-gen(1), pnmenlarge(1), pnmscale(1), pnmnlfilt(1)\n\n### AUTHOR\n\nRussell Marks (russell.marks@ntlworld.com).\n\n\n\n11 November 2001                             pamstretch(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "pamstretch",
        "section": "1",
        "mode": "man",
        "summary": "pamstretch - scale up a PNM or PAM image by interpolating between pixels",
        "synopsis": "pamstretch [-xscale=X] [-yscale=Y]\n[-blackedge] [-dropedge] N [infile]\nYou  can use the minimum unique abbreviation of the options.  You can use two hyphens instead\nof one.  You can separate an option name from its value with white space instead of an equals\nsign.",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This is the horizontal scale factor. If you don't specify this, but do specify a ver‐ tical scale factor, the horizontal scale factor is 1."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This is the vertical scale factor. If you don't specify this, but do specify a hori‐ zontal scale factor, the vertical scale factor is 1."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "interpolate to black at right/bottom edges."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "drop one (source) pixel at right/bottom edges. This is arguably more logical than the default behaviour, but it means producing output which is a slightly odd size."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "pamstretch-gen",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pamstretch-gen/1/json"
            },
            {
                "name": "pnmenlarge",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnmenlarge/1/json"
            },
            {
                "name": "pnmscale",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnmscale/1/json"
            },
            {
                "name": "pnmnlfilt",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnmnlfilt/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-yscale",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-xscale=",
                        "lines": 4
                    },
                    {
                        "name": "-yscale=",
                        "lines": 4
                    },
                    {
                        "name": "-blackedge",
                        "lines": 1
                    },
                    {
                        "name": "-dropedge",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}