{
    "content": [
        {
            "type": "text",
            "text": "# sgitopnm (man)\n\n## NAME\n\nsgitopnm - convert a SGI image file to a portable anymap\n\n## SYNOPSIS\n\nsgitopnm [-verbose] [-channel c] [SGIfile]\n\n## DESCRIPTION\n\nReads an SGI image file as input.  Produces a PGM image for a 2-dimensional (1 channel) input\nfile, and a PPM image for a 3-dimensional (3 or more channels) input file.\n\n## TLDR\n\n> Convert an SGI file to a PNM file.\n\n- Convert an SGI image to a PNM file:\n  `sgitopnm {{path/to/input.sgi}} > {{path/to/output.pnm}}`\n- Display information about the SGI file:\n  `sgitopnm {{-verb|-verbose}} {{path/to/input.sgi}} > {{path/to/output.pnm}}`\n- Extract channel n of the SGI file:\n  `sgitopnm {{-c|-channel}} {{n}} {{path/to/input.sgi}} > {{path/to/output.pnm}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (2 subsections)\n- **REFERENCES**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "sgitopnm",
        "section": "",
        "mode": "man",
        "summary": "sgitopnm - convert a SGI image file to a portable anymap",
        "synopsis": "sgitopnm [-verbose] [-channel c] [SGIfile]",
        "tldr_summary": "Convert an SGI file to a PNM file.",
        "tldr_examples": [
            {
                "description": "Convert an SGI image to a PNM file",
                "command": "sgitopnm {{path/to/input.sgi}} > {{path/to/output.pnm}}"
            },
            {
                "description": "Display information about the SGI file",
                "command": "sgitopnm {{-verb|-verbose}} {{path/to/input.sgi}} > {{path/to/output.pnm}}"
            },
            {
                "description": "Extract channel n of the SGI file",
                "command": "sgitopnm {{-c|-channel}} {{n}} {{path/to/input.sgi}} > {{path/to/output.pnm}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Give some information about the SGI image file."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Extract channel c of the image as a PGM image. Without this option, sgitopnm extracts the first 3 channels as a PPM image or, if the input has only 1 channel, extracts that as a PGM image, and if the input has 2 channels, fails."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "pnm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pnm/5/json"
            },
            {
                "name": "pnmtosgi",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnmtosgi/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-verbose",
                        "lines": 2
                    },
                    {
                        "name": "-channel",
                        "lines": 5
                    }
                ]
            },
            {
                "name": "REFERENCES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "sgitopnm - convert a SGI image file to a portable anymap\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "sgitopnm [-verbose] [-channel c] [SGIfile]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Reads an SGI image file as input.  Produces a PGM image for a 2-dimensional (1 channel) input\nfile, and a PPM image for a 3-dimensional (3 or more channels) input file.\n\nAlternatively, produces a PGM image of any one of the channels in the input file.\n\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-verbose",
                        "content": "Give some information about the SGI image file.\n"
                    },
                    {
                        "name": "-channel",
                        "content": "Extract channel c of the image as a PGM image.  Without this option, sgitopnm extracts\nthe first 3 channels as a PPM image or, if the input has only 1 channel, extracts that\nas a PGM image, and if the input has 2 channels, fails.\n\n"
                    }
                ]
            },
            "REFERENCES": {
                "content": "SGI Image File Format documentation (draft v0.95) by Paul Haeberli (paul@sgi.com).  Available\nvia ftp at sgi.com:graphics/SGIIMAGESPEC.\n\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pnm(5), pnmtosgi(1)\n\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Copyright (C) 1994 by Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de)\n\n\n\n\n29 Jul 2000                                 sgitopnm(1)",
                "subsections": []
            }
        }
    }
}