{
    "content": [
        {
            "type": "text",
            "text": "# pnmdepth (man)\n\n## NAME\n\npnmdepth - change the maxval in a portable anymap\n\n## SYNOPSIS\n\npnmdepth newmaxval [pnmfile]\n\n## DESCRIPTION\n\nReads a portable anymap as input.  Scales all the pixel values, and writes out the image with\nthe new maxval.  Scaling the colors down to a smaller maxval will result in some loss of  in‐\nformation.\n\n## TLDR\n\n> This command is an alias of `pamdepth`.\n\n- View documentation for the original command:\n  `tldr pamdepth`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pnmdepth",
        "section": "",
        "mode": "man",
        "summary": "pnmdepth - change the maxval in a portable anymap",
        "synopsis": "pnmdepth newmaxval [pnmfile]",
        "tldr_summary": "This command is an alias of `pamdepth`.",
        "tldr_examples": [
            {
                "description": "View documentation for the original command",
                "command": "tldr pamdepth"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "pnm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pnm/5/json"
            },
            {
                "name": "ppmquant",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ppmquant/1/json"
            },
            {
                "name": "ppmdither",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ppmdither/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pnmdepth - change the maxval in a portable anymap\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pnmdepth newmaxval [pnmfile]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Reads a portable anymap as input.  Scales all the pixel values, and writes out the image with\nthe new maxval.  Scaling the colors down to a smaller maxval will result in some loss of  in‐\nformation.\n\nBe  careful of off-by-one errors when choosing the new maxval.  For instance, if you want the\ncolor values to be five bits wide, use a maxval of 31, not 32.\n\nOne important use of pnmdepth is to convert a new format 2-byte-per-sample PNM  file  to  the\nolder  1-byte-per-sample  format.  Before April 2000, essentially all raw (binary) format PNM\nfiles had a maxval less than 256 and one byte per sample, and many programs may rely on that.\nIf  you  specify a newmaxval less than 256, the resulting file should be readable by any pro‐\ngram that worked with PNM files before April 2000.\n\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pnm(5), ppmquant(1), ppmdither(1)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Copyright (C) 1989, 1991 by Jef Poskanzer.\n\n\n\n08 April 2000                                pnmdepth(1)",
                "subsections": []
            }
        }
    }
}