{
    "content": [
        {
            "type": "text",
            "text": "# pnmtosgi (man)\n\n## NAME\n\npnmtosgi - convert a portable anymap to a SGI image file\n\n## SYNOPSIS\n\npnmtosgi [-verbatim|-rle] [-imagename Name] [pnmfile]\n\n## DESCRIPTION\n\nReads  a  portable anymap as input. Produces an SGI image file as output.  The SGI image will\nbe 2-dimensional (1 channel) for PBM and PGM input, and 3-dimensional (3 channels) for PPM.\n\n## TLDR\n\n> Convert a PNM file to an SGI image file.\n\n- Convert a PNM image to an SGI image:\n  `pnmtosgi {{path/to/input.pnm}} > {{path/to/output.sgi}}`\n- Disable or enable compression:\n  `pnmtosgi -{{verbatim|rle}} {{path/to/input.pnm}} > {{path/to/output.sgi}}`\n- Write the specified string into the SGI image header's `imagename` field:\n  `pnmtosgi {{-i|-imagename}} {{string}} {{path/to/input.pnm}} > {{path/to/output.sgi}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (3 subsections)\n- **BUGS**\n- **REFERENCES**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pnmtosgi",
        "section": "",
        "mode": "man",
        "summary": "pnmtosgi - convert a portable anymap to a SGI image file",
        "synopsis": "pnmtosgi [-verbatim|-rle] [-imagename Name] [pnmfile]",
        "tldr_summary": "Convert a PNM file to an SGI image file.",
        "tldr_examples": [
            {
                "description": "Convert a PNM image to an SGI image",
                "command": "pnmtosgi {{path/to/input.pnm}} > {{path/to/output.sgi}}"
            },
            {
                "description": "Disable or enable compression",
                "command": "pnmtosgi -{{verbatim|rle}} {{path/to/input.pnm}} > {{path/to/output.sgi}}"
            },
            {
                "description": "Write the specified string into the SGI image header's `imagename` field",
                "command": "pnmtosgi {{-i|-imagename}} {{string}} {{path/to/input.pnm}} > {{path/to/output.sgi}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Write an uncompressed file."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Write a compressed (run length encoded) file."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Write the string \"name\" into the imagename field of the header. The name string is limited to 79 characters. If no name is given, pnmtosgi writes \"no name\" into this field."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "pnm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pnm/5/json"
            },
            {
                "name": "sgitopnm",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/sgitopnm/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-verbatim",
                        "lines": 2
                    },
                    {
                        "name": "-rle (default)",
                        "lines": 2
                    },
                    {
                        "name": "-imagename name",
                        "lines": 4
                    }
                ]
            },
            {
                "name": "BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REFERENCES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pnmtosgi - convert a portable anymap to a SGI image file\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pnmtosgi [-verbatim|-rle] [-imagename Name] [pnmfile]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Reads  a  portable anymap as input. Produces an SGI image file as output.  The SGI image will\nbe 2-dimensional (1 channel) for PBM and PGM input, and 3-dimensional (3 channels) for PPM.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-verbatim",
                        "content": "Write an uncompressed file.\n"
                    },
                    {
                        "name": "-rle (default)",
                        "content": "Write a compressed (run length encoded) file.\n"
                    },
                    {
                        "name": "-imagename name",
                        "content": "Write the string \"name\" into the imagename field of the header.  The  name  string  is\nlimited  to  79  characters.  If no name is given, pnmtosgi writes \"no name\" into this\nfield.\n"
                    }
                ]
            },
            "BUGS": {
                "content": "Probably.\n",
                "subsections": []
            },
            "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",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pnm(5), sgitopnm(1)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Copyright (C) 1994 by Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de)\n\n\n\n\n29 Januar 1994                                pnmtosgi(1)",
                "subsections": []
            }
        }
    }
}