{
    "content": [
        {
            "type": "text",
            "text": "# pnmarith (info)\n\n## NAME\n\npnmarith - perform arithmetic on two portable anymaps\n\n## SYNOPSIS\n\npnmarith  -add|-subtract|-multiply|-difference|-minimum|-maximum.  pnm-\nfile1 pnmfile2\n\n## DESCRIPTION\n\nReads two portable anymaps as input.  Performs the specified arithmetic\noperation,  and  produces  a  portable anymap as output.  The two input\nanymaps must be the same width and height.\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": "pnmarith",
        "section": "",
        "mode": "info",
        "summary": "pnmarith - perform arithmetic on two portable anymaps",
        "synopsis": "pnmarith  -add|-subtract|-multiply|-difference|-minimum|-maximum.  pnm-\nfile1 pnmfile2",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "pbmmask",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pbmmask/1/json"
            },
            {
                "name": "pnmpaste",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnmpaste/1/json"
            },
            {
                "name": "pnminvert",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnminvert/1/json"
            },
            {
                "name": "pnm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pnm/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 4,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pnmarith - perform arithmetic on two portable anymaps\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pnmarith  -add|-subtract|-multiply|-difference|-minimum|-maximum.  pnm-\nfile1 pnmfile2\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Reads two portable anymaps as input.  Performs the specified arithmetic\noperation,  and  produces  a  portable anymap as output.  The two input\nanymaps must be the same width and height.\n\nThe arithmetic is performed between corresponding  pixels  in  the  two\nanymaps, as if maxval was 1.0, black was 0.0, and a linear scale in be-\ntween.  Results that fall outside of [0..1) are truncated.\n\nThe operator -difference calculates  the  absolute  value  of  pnmarith\n-subtract pnmfile1 pnmfile2, i.e. no truncation is done.\n\nAll flags can be abbreviated to their shortest unique prefix.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pbmmask(1), pnmpaste(1), pnminvert(1), pnm(5)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Copyright  (C) 1989, 1991 by Jef Poskanzer.  Lightly modified by Marcel\nWijkstra <wijkstra@fwi.uva.nl>\n\n26 August 1993                     pnmarith(1)",
                "subsections": []
            }
        }
    }
}