{
    "mode": "man",
    "parameter": "asciitopgm",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/asciitopgm/1/json",
    "generated": "2026-05-30T06:08:39Z",
    "synopsis": "asciitopgm [-d divisor] height width [asciifile]",
    "sections": {
        "NAME": {
            "content": "asciitopgm - convert ASCII graphics into a portable graymap\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "asciitopgm [-d divisor] height width [asciifile]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Reads  ASCII  data  as input.  Produces a portable graymap with pixel values which are an ap‐\nproximation of the \"brightness\" of the ASCII characters,  assuming  black-on-white  printing.\nIn other words, a capital M is very dark, a period is ver light, and a space is white.  Input\nlines which are fewer than width characters are automatically padded with spaces.\n\nThe divisor argument is a floating-point number by which the output pixels are  divided;  the\ndefault value is 1.0.  This can be used to adjust the brightness of the graymap: for example,\nif the image is too dim, reduce the divisor.\n\nIn keeping with (I believe) Fortran line-printer conventions, input lines beginning with a  +\n(plus)  character  are  assumed to \"overstrike\" the previous line, allowing a larger range of\ngray values.\n\nThis tool contradicts the message in the pbmtoascii manual: \"Note that there is no asciitopbm\ntool - this transformation is one-way.\"\n",
            "subsections": []
        },
        "BUGS": {
            "content": "The  table  of  ASCII-to-grey values is subject to interpretation, and, of course, depends on\nthe typeface intended for the input.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pbmtoascii(1), pgm(5)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Wilson H. Bent. Jr. (whb@usc.edu)\n\n\n\n26 December 1994                             asciitopgm(1)",
            "subsections": []
        }
    },
    "summary": "asciitopgm - convert ASCII graphics into a portable graymap",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pbmtoascii",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pbmtoascii/1/json"
        },
        {
            "name": "pgm",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/pgm/5/json"
        }
    ]
}