shithub: riscv

ref: 1fe150f1ed46a8c1a65187b3088274e067493639
dir: /rc/bin/troff2png/

View raw version
#!/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