{
    "content": [
        {
            "type": "text",
            "text": "# ppmdither (man)\n\n## NAME\n\nppmdither - ordered dither for color images\n\n## SYNOPSIS\n\nppmdither [-dim power] [-red shades] [-green shades] [-blue shades] [ppmfile]\n\n## DESCRIPTION\n\nReads  a portable pixmap as input, and applies dithering to it to reduce the number of colors\nused down to the specified number of shades for each primary.  The default number  of  shades\nis  red=5,  green=9, blue=5, for a total of 225 colors.  To convert the image to a binary rgb\nformat suitable for color printers, use -red 2 -green 2 -blue 2.\n\n## TLDR\n\n> Reduce the number of colors in an image by applying dithering.\n\n- Read a PPM image, apply dithering, and save it to a file:\n  `ppmdither {{path/to/image.ppm}} > {{path/to/file.ppm}}`\n- Specify the desired number of shades for each primary color:\n  `ppmdither {{-r|-red}} {{2}} {{-g|-green}} {{3}} {{-b|-blue}} {{2}} {{path/to/image.ppm}} > {{path/to/file.ppm}}`\n- Specify the dimensions of the dithering matrix:\n  `ppmdither {{-d|-dim}} {{2}} {{path/to/image.ppm}} > {{path/to/file.ppm}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (4 subsections)\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "ppmdither",
        "section": "",
        "mode": "man",
        "summary": "ppmdither - ordered dither for color images",
        "synopsis": "ppmdither [-dim power] [-red shades] [-green shades] [-blue shades] [ppmfile]",
        "tldr_summary": "Reduce the number of colors in an image by applying dithering.",
        "tldr_examples": [
            {
                "description": "Read a PPM image, apply dithering, and save it to a file",
                "command": "ppmdither {{path/to/image.ppm}} > {{path/to/file.ppm}}"
            },
            {
                "description": "Specify the desired number of shades for each primary color",
                "command": "ppmdither {{-r|-red}} {{2}} {{-g|-green}} {{3}} {{-b|-blue}} {{2}} {{path/to/image.ppm}} > {{path/to/file.ppm}}"
            },
            {
                "description": "Specify the dimensions of the dithering matrix",
                "command": "ppmdither {{-d|-dim}} {{2}} {{path/to/image.ppm}} > {{path/to/file.ppm}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "mension is a power of 2. power is that power of 2. The default is 4, for a 16 by 16 matrix."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "pnmdepth",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnmdepth/1/json"
            },
            {
                "name": "ppmquant",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ppmquant/1/json"
            },
            {
                "name": "ppm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/ppm/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-dim",
                        "lines": 3
                    },
                    {
                        "name": "-red",
                        "lines": 1
                    },
                    {
                        "name": "-green",
                        "lines": 1
                    },
                    {
                        "name": "-blue",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "ppmdither - ordered dither for color images\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "ppmdither [-dim power] [-red shades] [-green shades] [-blue shades] [ppmfile]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Reads  a portable pixmap as input, and applies dithering to it to reduce the number of colors\nused down to the specified number of shades for each primary.  The default number  of  shades\nis  red=5,  green=9, blue=5, for a total of 225 colors.  To convert the image to a binary rgb\nformat suitable for color printers, use -red 2 -green 2 -blue 2.\n\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-dim",
                        "content": "mension is a power of 2.  power is that power of 2.  The default is 4, for a 16\nby 16 matrix.\n"
                    },
                    {
                        "name": "-red",
                        "content": ""
                    },
                    {
                        "name": "-green",
                        "content": ""
                    },
                    {
                        "name": "-blue",
                        "content": ""
                    }
                ]
            },
            "SEE ALSO": {
                "content": "pnmdepth(1), ppmquant(1), ppm(5)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Copyright (C) 1991 by Christos Zoulas.\n\n\n\n14 July 1991                                ppmdither(1)",
                "subsections": []
            }
        }
    }
}