{
    "content": [
        {
            "type": "text",
            "text": "# pnmarith (man)\n\n## NAME\n\npnmarith - perform arithmetic on two portable anymaps\n\n## SYNOPSIS\n\npnmarith -add|-subtract|-multiply|-difference|-minimum|-maximum.  pnmfile1 pnmfile2\n\n## DESCRIPTION\n\nReads  two  portable anymaps as input.  Performs the specified arithmetic operation, and pro‐\nduces a portable anymap as output.  The two input anymaps must be the same width and height.\n\n## TLDR\n\n> This command has been superseded by `pamarith`.\n\n- View documentation for the current command:\n  `tldr pamarith`\n\n*Source: tldr-pages*\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": "man",
        "summary": "pnmarith - perform arithmetic on two portable anymaps",
        "synopsis": "pnmarith -add|-subtract|-multiply|-difference|-minimum|-maximum.  pnmfile1 pnmfile2",
        "tldr_summary": "This command has been superseded by `pamarith`.",
        "tldr_examples": [
            {
                "description": "View documentation for the current command",
                "command": "tldr pamarith"
            }
        ],
        "tldr_source": "official",
        "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": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pnmarith - perform arithmetic on two portable anymaps\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pnmarith -add|-subtract|-multiply|-difference|-minimum|-maximum.  pnmfile1 pnmfile2\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Reads  two  portable anymaps as input.  Performs the specified arithmetic operation, and pro‐\nduces a portable anymap as output.  The two input anymaps must be the same width and height.\n\nThe arithmetic is performed between corresponding pixels in the two anymaps, as if maxval was\n1.0,  black  was 0.0, and a linear scale in between.  Results that fall outside of [0..1) are\ntruncated.\n\nThe operator -difference calculates the absolute value of pnmarith  -subtract  pnmfile1  pnm‐\nfile2, 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 Wijkstra <wijk‐\nstra@fwi.uva.nl>\n\n\n\n26 August 1993                                pnmarith(1)",
                "subsections": []
            }
        }
    }
}