{
    "content": [
        {
            "type": "text",
            "text": "# ppmhist (man)\n\n## NAME\n\nppmhist - print a histogram of a portable pixmap\n\n## SYNOPSIS\n\nppmhist [-hexcolor] [-noheader] [-map] [-nomap] [-sort={frequency,rgb}] [ppmfile]\n\n## DESCRIPTION\n\nReads a PPM image as input.  Generates a histogram of the colors in the image, i.e. a list of\nall the colors and how many pixels of each color are in the image.\n\n## TLDR\n\n> Print a histogram of the colors present in a PPM image.\n\n- Generate the histogram for human reading:\n  `ppmhist {{-nom|-nomap}} {{path/to/image.ppm}}`\n- Generate a PPM file of the colormap for the image, with the color histogram as comments:\n  `ppmhist {{-m|-map}} {{path/to/image.ppm}}`\n- Display version:\n  `ppmhist {{-v|-version}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (5 subsections)\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "ppmhist",
        "section": "",
        "mode": "man",
        "summary": "ppmhist - print a histogram of a portable pixmap",
        "synopsis": "ppmhist [-hexcolor] [-noheader] [-map] [-nomap] [-sort={frequency,rgb}] [ppmfile]",
        "tldr_summary": "Print a histogram of the colors present in a PPM image.",
        "tldr_examples": [
            {
                "description": "Generate the histogram for human reading",
                "command": "ppmhist {{-nom|-nomap}} {{path/to/image.ppm}}"
            },
            {
                "description": "Generate a PPM file of the colormap for the image, with the color histogram as comments",
                "command": "ppmhist {{-m|-map}} {{path/to/image.ppm}}"
            },
            {
                "description": "Display version",
                "command": "ppmhist {{-v|-version}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "The -sort option determines the order in which the colors are listed in the output. frequency means to list them in order of how pixels in the input image have the color, with the most represented colors first. rgb means to sort them first by the intensity of the red component of the color, the of the green, then of the blue, with the least intense first. The default is frequency."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Print the color components in hexadecimal. Default is decimal."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Do not print the column headings."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "ments."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "ppm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/ppm/5/json"
            },
            {
                "name": "pgmhist",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pgmhist/1/json"
            },
            {
                "name": "ppmtomap",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ppmtomap/1/json"
            },
            {
                "name": "pnmhistmap",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnmhistmap/1/json"
            },
            {
                "name": "ppmchange",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ppmchange/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-sort=",
                        "lines": 9
                    },
                    {
                        "name": "-hexcolor",
                        "lines": 2
                    },
                    {
                        "name": "-noheader",
                        "lines": 2
                    },
                    {
                        "name": "-map",
                        "lines": 2
                    },
                    {
                        "name": "-nomap",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "ppmhist - print a histogram of a portable pixmap\n\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "ppmhist [-hexcolor] [-noheader] [-map] [-nomap] [-sort={frequency,rgb}] [ppmfile]\n\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Reads a PPM image as input.  Generates a histogram of the colors in the image, i.e. a list of\nall the colors and how many pixels of each color are in the image.\n\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-sort=",
                        "content": "The -sort option determines the order in which the colors are listed  in  the  output.\nfrequency means to list them in order of how pixels in the input image have the color,\nwith the most represented colors first.  rgb means to sort them first by the intensity\nof  the red component of the color, the of the green, then of the blue, with the least\nintense first.\n\nThe default is frequency.\n\n"
                    },
                    {
                        "name": "-hexcolor",
                        "content": "Print the color components in hexadecimal.  Default is decimal.\n"
                    },
                    {
                        "name": "-noheader",
                        "content": "Do not print the column headings.\n"
                    },
                    {
                        "name": "-map",
                        "content": "ments.\n"
                    },
                    {
                        "name": "-nomap",
                        "content": ""
                    }
                ]
            },
            "SEE ALSO": {
                "content": "ppm(5), pgmhist(1), ppmtomap(1), pnmhistmap(1), ppmchange(1)\n\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Copyright (C) 1989 by Jef Poskanzer.\n\n\n\n17 September 2000                               ppmhist(1)",
                "subsections": []
            }
        }
    }
}