{
    "content": [
        {
            "type": "text",
            "text": "# pnmalias (man)\n\n## NAME\n\npnmalias - antialias a portable anyumap.\n\n## SYNOPSIS\n\npnmalias  [-bgcolor color] [-fgcolor color] [-bonly] [-fonly] [-balias] [-falias] [-weight w]\n[pnmfile]\n\n## DESCRIPTION\n\nReads a portable anymap as input, and applies anti-aliasing to background and foreground pix‐\nels.   If the input file is a portable bitmap, the output anti-aliased image is promoted to a\ngraymap, and a message is printed informing the user of the change in format.\n\n## TLDR\n\n> Apply antialiasing onto a PNM image.\n\n- Perform antialiasing on a PNM image, taking black pixels as background and white pixels as foreground:\n  `pnmalias {{path/to/input.pnm}} > {{path/to/output.ppm}}`\n- Explicitly specify the background and foreground color:\n  `pnmalias -bcolor {{background_color}} -fcolor {{foreground_color}} {{path/to/input.pnm}} > {{path/to/output.ppm}}`\n- Apply altialiasing to foreground pixels only:\n  `pnmalias {{-fo|-fonly}} {{path/to/input.pnm}} > {{path/to/output.ppm}}`\n- Apply antialiasing to all surrounding pixels of background pixels:\n  `pnmalias {{-ba|-balias}} {{path/to/input.pnm}} > {{path/to/output.ppm}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (4 subsections)\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pnmalias",
        "section": "",
        "mode": "man",
        "summary": "pnmalias - antialias a portable anyumap.",
        "synopsis": "pnmalias  [-bgcolor color] [-fgcolor color] [-bonly] [-fonly] [-balias] [-falias] [-weight w]\n[pnmfile]",
        "tldr_summary": "Apply antialiasing onto a PNM image.",
        "tldr_examples": [
            {
                "description": "Perform antialiasing on a PNM image, taking black pixels as background and white pixels as foreground",
                "command": "pnmalias {{path/to/input.pnm}} > {{path/to/output.ppm}}"
            },
            {
                "description": "Explicitly specify the background and foreground color",
                "command": "pnmalias -bcolor {{background_color}} -fcolor {{foreground_color}} {{path/to/input.pnm}} > {{path/to/output.ppm}}"
            },
            {
                "description": "Apply altialiasing to foreground pixels only",
                "command": "pnmalias {{-fo|-fonly}} {{path/to/input.pnm}} > {{path/to/output.ppm}}"
            },
            {
                "description": "Apply antialiasing to all surrounding pixels of background pixels",
                "command": "pnmalias {{-ba|-balias}} {{path/to/input.pnm}} > {{path/to/output.ppm}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "set the background color to colorb, and the foreground to color to colorf. Pixels with these values will be anti-aliased. by default, the background color is taken to be black, and foreground color is assumed to be white. The colors can be specified in five ways: o A name, assuming that a pointer to an X11-style color names file was compiled in. o An X11-style hexadecimal specifier: rgb:r/g/b, where r g and b are each 1- to 4-digit hexadecimal numbers. o An X11-style decimal specifier: rgbi:r/g/b, where r g and b are floating point numbers between 0 and 1. o For backwards compatibility, an old-X11-style hexadecimal number: #rgb, #rrggbb, #rrrgggbbb, or #rrrrggggbbbb. o For backwards compatibility, a triplet of numbers separated by commas: r,g,b, where r g and b are floating point numbers between 0 and 1. (This style was added before MIT came up with the similar rgbi style.) Note that even when dealing with graymaps, background and foreground colors need to be specified in the fashion described above. In this case, background and foreground pixel values are taken to be the value of the red component for the given color."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Apply anti-aliasing only to background (-bonly), or foreground (-fonly) pixels."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Apply anti-aliasing to all pixels surrounding background (-balias), or foreground (-falias) pixels. By default, anti-aliasing takes place only among neighboring back‐ ground and foreground pixels."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Use w as the central weight for the aliasing filter. W must be a real number in the range 0 < w < 1. The lower the value of w is, the \"blurrier\" the output image is. The default is w = 1/3."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "pbmtext",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pbmtext/1/json"
            },
            {
                "name": "pnmsmooth",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnmsmooth/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": 4,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-bgcolor -fgcolor",
                        "lines": 24
                    },
                    {
                        "name": "-bonly -fonly",
                        "lines": 2
                    },
                    {
                        "name": "-balias -falias",
                        "lines": 4
                    },
                    {
                        "name": "-weight",
                        "lines": 4
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pnmalias - antialias a portable anyumap.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pnmalias  [-bgcolor color] [-fgcolor color] [-bonly] [-fonly] [-balias] [-falias] [-weight w]\n[pnmfile]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Reads a portable anymap as input, and applies anti-aliasing to background and foreground pix‐\nels.   If the input file is a portable bitmap, the output anti-aliased image is promoted to a\ngraymap, and a message is printed informing the user of the change in format.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-bgcolor -fgcolor",
                        "content": "set the background color to colorb, and the foreground to  color  to  colorf.   Pixels\nwith  these  values will be anti-aliased. by default, the background color is taken to\nbe black, and foreground color is assumed to be white.  The colors can be specified in\nfive ways:\n\no    A name, assuming that a pointer to an X11-style color names file was compiled in.\n\no    An  X11-style  hexadecimal  specifier:  rgb:r/g/b, where r g and b are each 1- to\n4-digit hexadecimal numbers.\n\no    An X11-style decimal specifier: rgbi:r/g/b, where r g and b  are  floating  point\nnumbers between 0 and 1.\n\no    For  backwards compatibility, an old-X11-style hexadecimal number: #rgb, #rrggbb,\n#rrrgggbbb, or #rrrrggggbbbb.\n\no    For backwards compatibility, a triplet of numbers  separated  by  commas:  r,g,b,\nwhere  r  g  and  b  are floating point numbers between 0 and 1.  (This style was\nadded before MIT came up with the similar rgbi style.)\n\nNote that even when dealing with graymaps, background and foreground colors need to be\nspecified  in  the  fashion  described above.  In this case, background and foreground\npixel values are taken to be the value of the red component for the given color.\n"
                    },
                    {
                        "name": "-bonly -fonly",
                        "content": "Apply anti-aliasing only to background (-bonly), or foreground (-fonly) pixels.\n"
                    },
                    {
                        "name": "-balias -falias",
                        "content": "Apply anti-aliasing to all pixels  surrounding  background  (-balias),  or  foreground\n(-falias)  pixels.  By default, anti-aliasing takes place only among neighboring back‐\nground and foreground pixels.\n"
                    },
                    {
                        "name": "-weight",
                        "content": "Use w as the central weight for the aliasing filter.  W must be a real number  in  the\nrange  0  <  w  < 1.  The lower the value of w is, the \"blurrier\" the output image is.\nThe default is w = 1/3.\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "pbmtext(1), pnmsmooth(1), pnm(5)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Copyright (C) 1992 by Alberto Accomazzi, Smithsonian Astrophysical Observatory.\n\n\n\n30 April 1992                                pnmalias(1)",
                "subsections": []
            }
        }
    }
}