diff options
author | rsc <devnull@localhost> | 2006-07-23 02:48:13 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-07-23 02:48:13 +0000 |
commit | 41beebe4c32a4bf8c3c3635df22c9778e1f722fb (patch) | |
tree | 309825501f5d25735ede4b34a7d5dbcab9c042f3 /bin | |
parent | 5801105701ffe5e9695644bfd1a2d79f48977100 (diff) | |
download | plan9port-41beebe4c32a4bf8c3c3635df22c9778e1f722fb.tar.gz plan9port-41beebe4c32a4bf8c3c3635df22c9778e1f722fb.tar.bz2 plan9port-41beebe4c32a4bf8c3c3635df22c9778e1f722fb.zip |
for htmlroff
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/troff2png | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/troff2png b/bin/troff2png new file mode 100755 index 00000000..f97ab26e --- /dev/null +++ b/bin/troff2png @@ -0,0 +1,9 @@ +#!/usr/local/plan9/bin/rc + +9 troff -ms $* | tr2post | + gs -g1000x1000 -r144 -dNOPAUSE -dQUIET \ + '-dGraphicsAlphaBits=4' '-dTextAlphaBits=4' \ + '-sOUTPUTFILE=-' '-sDEVICE=png16m' - quit.ps | 9 png -9t | + 9 crop -c 255 255 255 | + 9 topng + |