{
    "content": [
        {
            "type": "text",
            "text": "# pamstack (man)\n\n## NAME\n\npamstack - stack planes of multiple PAM images into one PAM image\n\n## SYNOPSIS\n\npamstack [-tupletype tupletype] [inputfilespec]\nAll options may be abbreviated to the shortest unique prefix.\n\n## DESCRIPTION\n\nReads  multiple PAM or PNM images as input. Produces a PAM image as output, consisting of all\nthe planes (channels) of the inputs, stacked in the order specified.\n\n## TLDR\n\n> Stack the planes of multiple PAM images into one PAM image.\n\n- Stack the planes of the specified PAM images in the specified order:\n  `pamstack {{path/to/image1.pam path/to/image2.pam ...}} > {{path/to/output.pam}}`\n- Specify the tuple type name of the output PAM file (maximum of 255 characters):\n  `pamstack {{-t|-tupletype}} {{tuple_type}} {{path/to/image1.pam path/to/image2.pam ...}} > {{path/to/output.pam}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (1 subsections)\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pamstack",
        "section": "",
        "mode": "man",
        "summary": "pamstack - stack planes of multiple PAM images into one PAM image",
        "synopsis": "pamstack [-tupletype tupletype] [inputfilespec]\nAll options may be abbreviated to the shortest unique prefix.",
        "tldr_summary": "Stack the planes of multiple PAM images into one PAM image.",
        "tldr_examples": [
            {
                "description": "Stack the planes of the specified PAM images in the specified order",
                "command": "pamstack {{path/to/image1.pam path/to/image2.pam ...}} > {{path/to/output.pam}}"
            },
            {
                "description": "Specify the tuple type name of the output PAM file (maximum of 255 characters)",
                "command": "pamstack {{-t|-tupletype}} {{tuple_type}} {{path/to/image1.pam path/to/image2.pam ...}} > {{path/to/output.pam}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This specified the tuple type name to be recorded in the output. You may use any string up to 255 characters. Some programs recognize some names. If you omit this op‐ tion, the default tuple type name is null."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "pam",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pam/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 22,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-tupletype",
                        "lines": 5
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pamstack - stack planes of multiple PAM images into one PAM image\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pamstack [-tupletype tupletype] [inputfilespec]\n\nAll options may be abbreviated to the shortest unique prefix.\n\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Reads  multiple PAM or PNM images as input. Produces a PAM image as output, consisting of all\nthe planes (channels) of the inputs, stacked in the order specified.\n\nThe output is the same dimensions as the inputs, except that the depth  is  the  sum  of  the\ndepths  of  the inputs. It has the same maxval.  pamstack fails if the inputs are not all the\nsame width, height, and maxval. The tuple type is a null string unless you specify  the  -tu‐‐\npletype option.\n\npamchannel does the opposite of pamstack: It extracts individual planes from a single PAM.\n\nUse pamtopnm to convert a suitable PAM image to a more traditional PNM (PBM, PGM, or PPM) im‐\nage.\n\nOne example of using pamstack is that some Netpbm programs accept as input a PAM that  repre‐\nsents  graphic  image with transparency information -- tuple type \"RGBA\". In Netpbm, such im‐\nages were traditionally represented as two images - a PPM for the color and  a  PGM  for  the\ntransparency.  To convert a PPM/PGM pair into PAM(RGBA) input that newer programs require, do\nsomething like this:\n\npamstack -tupletype=RGBA myimage.ppm myalpha.pgm | pamtouil >myimage.uil\n\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-tupletype",
                        "content": "This specified the tuple type name to be recorded in  the  output.  You  may  use  any\nstring  up to 255 characters. Some programs recognize some names. If you omit this op‐\ntion, the default tuple type name is null.\n\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "pam(5)\n\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Copyright (C) by Bryan Henderson, San Jose CA 2000.08.05\n\n\n\n01 May 2002                                 pamstack(1)",
                "subsections": []
            }
        }
    }
}