pic2graph(1)
π pic2graph(1) β the group-chat guide π
okay so bestie, welcome to pic2graph, the general commands manual page that turns your little pic diagram into a cropped image. yes, that pic. the diagram one. not a selfie. we're being productive today π
β¨ NAME β¨
pic2graph β convert a pic diagram into a cropped image. that's the whole vibe. icon behavior only π
πΈ SYNOPSIS πΈ
pic2graph [-unsafe] [-format output-format] [-eqn delimiters] [convert-argument ...]
pic2graph --help
pic2graph -v
pic2graph --version
literally four whole ways to summon it. pick your fighter π«Ά
π¦ DESCRIPTION π¦
so here's the tea: pic2graph reads a pic(1) program from the standard input and writes an image file to the standard output β and by default that image is in Portable Network Graphics (PNG) format. cute, right? π
and it furthermore translates eqn(1) constructs, which means you can absolutely use it to generate images of mathematical formulae. math girlies stay winning π₯
π¨ important bestie note: the input PIC code should not be wrapped with the.PSand.PE/.PF/.PYmacros that normally guard it withingroff(1)documents. like, don't do that. take the guard rails off. it's giving "trust the process" π
Arguments that pic2graph doesn't recognize get passed straight to the ImageMagick or GraphicsMagick program convert(1). why do we love this? because by specifying those, you can give your image a border, set the image's pixel density, or perform other useful transformations. your image, your rules β¨
oh and the output image gets clipped using convert's -trim option to the smallest possible bounding box that contains all the black pixels. no wasted space. no awkward empty margins. it's giving cropped and flawless π
π OPTIONS π
--helpβ displays a usage message. and-vand--versionshow version information. all of them exit afterward, so likeβ¦ they're not staying for the afterparty. bye bestie π-eqndelimiters β use delimiters as the opening and closing characters that delimiteqndirectives. the default is β$$β β iconic, classic, no notes. the option argument delimiters should be a two-character string, but an empty string ("") is accepted as a directive to disableeqnprocessing. yes, you can just switch it off entirely. sometimes the move is no thoughts head empty π-formatoutput-format β write the image in output-format, which must be understood byconvert. the default isPNG. so if you're feeling spicy, go off, but it has to be somethingconvertactually speaks, okay? π₯-unsafeβ rungroffin unsafe mode, enabling the PIC commandshto execute arbitrary Unix shell commands. π¨ and thegroffdefault is to forbid this. so like, bestie. be so serious. only use this if you actually know what you're doing, because arbitrary shell commands are exactly as chaotic as they sound π
π ENVIRONMENT π
GROFF_TMPDIRTMPDIRTMPTEMP
these environment variables are searched in the order shown to determine the directory where temporary files will be created. in order, bestie, not vibes-based. and if none of them are set, /tmp is used. the default. the fallback. the main character of directories πΈ
π§ AUTHORS π§
pic2graph was written by Eric S. Raymond, based on a recipe by W. Richard Stevens. we stan a documented credit chain π
β SEE ALSO β
- W. Richard Stevens, Turning PIC into HTML
eqn2graph(1),grap2graph(1),pic(1),eqn(1),groff(1),convert(1)
go read the whole little family, they're all icons π
and that's the whole page, bestie!! this cutie came to you courtesy of groff 1.24.2, dated 2026-10-01 β so you know it's fresh β¨ mwah, go make some cropped images ππ
π¦ where this page comes from
- alpine 3.24: groff-doc 1.24.2-r0 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms