{
    "content": [
        {
            "type": "text",
            "text": "# pbmtoascii(1) (man)\n\n## TLDR\n\n> Convert a PBM image to ASCII graphics.\n\n- Read a PBM file as input and produce an ASCII output:\n  `pbmtoascii {{path/to/input_file.pbm}}`\n- Read a PBM file as input and save an ASCII output into a file:\n  `pbmtoascii {{path/to/input_file.pbm}} > {{path/to/output_file}}`\n- Read a PBM file as input while setting the pixel mapping (defaults to 1x2):\n  `pbmtoascii -{{1x2|2x4}} {{path/to/input_file.pbm}}`\n- Display version:\n  `pbmtoascii {{-v|-version}}`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** pbmtoascii - convert a portable bitmap into ASCII graphics\n\n**Synopsis:** pbmtoascii [-1x2|-2x4] [pbmfile]\n\n## See Also\n\n- pbm(5)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (4 lines)\n- **OPTIONS** (8 lines)\n- **SEE ALSO** (2 lines)\n- **AUTHOR** (5 lines)\n\n## Full Content\n\n### NAME\n\npbmtoascii - convert a portable bitmap into ASCII graphics\n\n### SYNOPSIS\n\npbmtoascii [-1x2|-2x4] [pbmfile]\n\n### DESCRIPTION\n\nReads a portable bitmap as input.  Produces a somewhat crude ASCII graphic as output.\n\nNote that there is no asciitopbm tool - this transformation is one-way.\n\n### OPTIONS\n\nThe -1x2 and -2x4 flags give you two alternate ways for the bits to get mapped to characters.\nWith 1x2, the default, each character represents a group of 1 bit  across  by  2  bits  down.\nWith -2x4, each character represents 2 bits across by 4 bits down.  With the 1x2 mode you can\nsee the individual bits, so it's useful for previewing small bitmaps on a non-graphics termi‐\nnal.   The  2x4  mode lets you display larger bitmaps on a standard 80-column display, but it\nobscures bit-level details.  2x4 mode is also good for displaying graymaps - \"pnmscale -width\n158 | pgmnorm | pgmtopbm -thresh\" should give good results.\n\n### SEE ALSO\n\npbm(5)\n\n### AUTHOR\n\nCopyright (C) 1988, 1992 by Jef Poskanzer.\n\n\n\n20 March 1992                              pbmtoascii(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "pbmtoascii",
        "section": "1",
        "mode": "man",
        "summary": "pbmtoascii - convert a portable bitmap into ASCII graphics",
        "synopsis": "pbmtoascii [-1x2|-2x4] [pbmfile]",
        "tldr_summary": "Convert a PBM image to ASCII graphics.",
        "tldr_examples": [
            {
                "description": "Read a PBM file as input and produce an ASCII output",
                "command": "pbmtoascii {{path/to/input_file.pbm}}"
            },
            {
                "description": "Read a PBM file as input and save an ASCII output into a file",
                "command": "pbmtoascii {{path/to/input_file.pbm}} > {{path/to/output_file}}"
            },
            {
                "description": "Read a PBM file as input while setting the pixel mapping (defaults to 1x2)",
                "command": "pbmtoascii -{{1x2|2x4}} {{path/to/input_file.pbm}}"
            },
            {
                "description": "Display version",
                "command": "pbmtoascii {{-v|-version}}"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "pbm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pbm/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}