{
    "mode": "man",
    "parameter": "pic2graph",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pic2graph/1/json",
    "generated": "2026-05-30T05:09:50Z",
    "synopsis": "pic2graph [-unsafe] [-format output-format] [-eqn delimiters] [convert-arguments]",
    "sections": {
        "NAME": {
            "content": "pic2graph - convert a PIC diagram into a cropped image\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pic2graph [-unsafe] [-format output-format] [-eqn delimiters] [convert-arguments]\n",
            "subsections": [
                {
                    "name": "pic2graph --help",
                    "content": ""
                },
                {
                    "name": "pic2graph -v",
                    "content": ""
                },
                {
                    "name": "pic2graph --version",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "pic2graph reads a pic(1) program from the standard input and writes an image file, by default\nin Portable Network Graphics (PNG) format, to the standard output.  It furthermore translates\neqn(1) constructs, so it can be used for generating images of mathematical formulae.\n\nThe  input  PIC code should not be wrapped with the .PS and .PE macros that normally guard it\nwithin groff(1) documents.\n\nArguments not recognized by pic2graph are passed to the ImageMagick or GraphicsMagick program\nconvert(1).   By  specifying  these,  you can give your image a border, set the image's pixel\ndensity, or perform other useful transformations.\n\nThe output image is clipped using convert's -trim option to the  smallest  possible  bounding\nbox that contains all the black pixels.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-eqn",
                    "content": "Use  delimiters as the opening and closing characters that delimit eqn directives; the\ndefault is “$$”.  The option argument delimiters should be a two-character string, but\nan empty string (\"\") is accepted as a directive to disable eqn processing.\n"
                },
                {
                    "name": "-format",
                    "content": "Write  the image in output-format, which must be understood by convert; the default is\nPNG.\n\n--help Display a usage message and exit.\n"
                },
                {
                    "name": "-unsafe",
                    "content": "Run groff in unsafe mode, enabling the PIC command sh to execute arbitrary Unix  shell\ncommands.  The groff default is to forbid this.\n"
                },
                {
                    "name": "-v",
                    "content": "",
                    "flag": "-v"
                },
                {
                    "name": "--version",
                    "content": "Display version information and exit.\n",
                    "long": "--version"
                }
            ]
        },
        "ENVIRONMENT": {
            "content": "GROFFTMPDIR\nTMPDIR\nTMP\nTEMP   These environment variables are searched in the given order to determine the directory\nwhere temporary files will be created.  If none are set, /tmp is used.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "pic2graph was written by Eric S. Raymond ⟨esr@thyrsus.com⟩, based on a recipe by  W.  Richard\nStevens.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "W. Richard Stevens, Turning PIC into HTML ⟨http://www.kohala.com/start/troff/pic2html.html⟩\n\neqn2graph(1), grap2graph(1), pic(1), eqn(1), groff(1), convert(1)\n\n\n\ngroff 1.22.4                                23 March 2022                               PIC2GRAPH(1)",
            "subsections": []
        }
    },
    "summary": "pic2graph - convert a PIC diagram into a cropped image",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Use delimiters as the opening and closing characters that delimit eqn directives; the default is “$$”. The option argument delimiters should be a two-character string, but an empty string (\"\") is accepted as a directive to disable eqn processing."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Write the image in output-format, which must be understood by convert; the default is PNG. --help Display a usage message and exit."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Run groff in unsafe mode, enabling the PIC command sh to execute arbitrary Unix shell commands. The groff default is to forbid this."
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Display version information and exit."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "eqn2graph",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/eqn2graph/1/json"
        },
        {
            "name": "grap2graph",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/grap2graph/1/json"
        },
        {
            "name": "pic",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pic/1/json"
        },
        {
            "name": "eqn",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/eqn/1/json"
        },
        {
            "name": "groff",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/groff/1/json"
        },
        {
            "name": "convert",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/convert/1/json"
        }
    ]
}