{
    "mode": "man",
    "parameter": "pnminvert",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pnminvert/1/json",
    "generated": "2026-08-10T16:36:13Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "pnminvert - invert a PNM image\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "pnminvert",
                    "content": "[pnmfile]\n\n"
                }
            ]
        },
        "DESCRIPTION": {
            "content": "This program is part of Netpbm(1).\n\npnminvert reads a PNM image as input, inverts it black for white, and produces a PNM image as\noutput.\n\nIf  the  image is grayscale, pnminvert replaces a pixel with one of complementary brightness,\ni.e. if the original pixel has gamma-adjusted gray value G, the output pixel has  gray  value\nmaxval - G.\n\nIf  the  image  is  color,  pnminvert inverts each individual RGB component the same as for a\ngrayscale image.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "There are no command line options defined specifically for pnminvert, but it  recognizes  the\noptions common to all programs based on libnetpbm (See \u001b]8;;index.html#commonoptions\u001b\\ Common Options\u001b]8;;\u001b\\ .)\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pnm(1)\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 1989 by Jef Poskanzer.\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/pnminvert.html\n\nnetpbm documentation                       08 August 1989                   Pnminvert User Manual(1)",
            "subsections": []
        }
    },
    "summary": "pnminvert - invert a PNM image",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pnm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pnm/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Invert a PNM image.",
        "examples": [
            {
                "description": "Invert the colors or greyscale values in a PNM image",
                "command": "pnminvert {{path/to/input.pnm}} > {{path/to/output.pnm}}"
            }
        ]
    }
}