Skip to content
/ pic2img Public

Improved version of groff's pic2graph utility to convert `pic` diagram to properly cropped images.

Notifications You must be signed in to change notification settings

sylsau/pic2img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pic2img, modernized version of groff's pic2graph utility to turn PIC diagram into images easily.
Usage: pic2img [-f FORMAT -q QUALITY -s SIZE -b -k -K PRECONV-ENCODING --eqn EQN-DELIM -U] < IN > OUT

Example

pic2img -f PNG -q 2 -s 700x -k -b turns this:

boxwid=1; 	boxht=.75;
linewid=1; 	lineht=.75;
box "\fBBIG BOX" "number 1\fR"
arrow "goes to" ""
box "\fBANOTHER\fR" "HUGE BOX"
down
move 1.4
left
move 2
box "\fB\s-3Slightly\s-1 less\s-1 important" "\s-1box\s-1 here...\s+7\fR" dashed
right
box invis
line 1.5 dashed "and up" "" "we go"
up
arrow 1 dashed

into this:

About

Improved version of groff's pic2graph utility to convert `pic` diagram to properly cropped images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published