plan9fox/rc/bin/troff2png
2011-03-30 18:29:07 +00:00

9 lines
228 B
Bash
Executable file

#!/bin/rc
troff -ms $* | aux/tr2post |
gs -g1000x1600 -r100 -dNOPAUSE -dQUIET \
'-dGraphicsAlphaBits=4' '-dTextAlphaBits=4' \
'-sOUTPUTFILE=-' '-sDEVICE=plan9' - quit.ps |
{crop -c 255 255 255; cat >/dev/null} |
topng