{
    "mode": "man",
    "parameter": "ppmflash",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/ppmflash/1/json",
    "generated": "2026-10-06T13:27:30Z",
    "synopsis": "ppmflash flashfactor [ppmfile]",
    "sections": {
        "NAME": {
            "content": "ppmflash - brighten a picture to approach white\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ppmflash flashfactor [ppmfile]\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This program is part of Netpbm(1).\n\nppmflash reads a PPM image as input.  It changes the color of each pixel to bring it a speci‐\nfied amount closer to white.  It generates a PPM image of the result.\n\nflashfactor is a real number between 0 and 1, inclusive.  ppmflash increases the intensity of\neach  RGB  component  by the fraction flashfactor of the difference between the current value\nand full intensity.  So if a pixel contains 60% full red, 10% full green, and no blue and you\nspecify 0.5 (half), ppmflash increases the red to 80% (because it was 40%  from  full  inten‐\nsity, so it adds half of 40% to the original 60%), the green to 55%, and the blue to 50%.\n\nIf  flashfactor  is  zero,  the output is identical to the input.  If flashfactor is one, the\noutput is all white.\n\npambrighten does a more normal kind of brightening.  pamfunc does a very simple  brightening.\nBoth pambrighten and pamfunc can reduce brightness as well.\n\npnmgamma  is another way people do a similar brightening, though it isn't really intended for\nthat.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "There are no command line options defined specifically for ppmflash, but  it  recognizes  the\noptions common to all programs based on libnetpbm (See  Common Options .)\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pambrighten(1) pamfunc(1), pnmgamma(1), ppm(1),\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 1993 by Frank Neumann\n",
            "subsections": []
        },
        "DOCUMENT SOURCE": {
            "content": "This  manual  page  was  generated by the Netpbm tool 'makeman' from HTML source.  The master\ndocumentation is at\n\nhttp://netpbm.sourceforge.net/doc/ppmflash.html\n\nnetpbm documentation                       26 January 2003                   Ppmflash User Manual(1)",
            "subsections": []
        }
    },
    "summary": "ppmflash - brighten a picture to approach white",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pambrighten",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pambrighten/1/json"
        },
        {
            "name": "pamfunc",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pamfunc/1/json"
        },
        {
            "name": "pnmgamma",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pnmgamma/1/json"
        },
        {
            "name": "ppm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ppm/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Brighten a PPM image file.",
        "examples": [
            {
                "description": "Generate a PPM image as output that is `flashfactor` times brighter than the input PPM image",
                "command": "ppmflash {{flashfactor}} {{path/to/file.ppm}} > {{path/to/file.ppm}}"
            },
            {
                "description": "Display version",
                "command": "ppmflash {{-v|-version}}"
            }
        ]
    }
}