This package is unmaintained. It's easier to use aha to generate HTML from terminal output and process the HTML into your desired final format.
Compatible with Python 2.7 and Python 3.
python -m pip install term2image
Read the output of a terminal command like "man" or "ls" and write a PNG.
usage: term2image [-h] [-i INFILE] [-o OUTFILE]
Convert terminal command output to an image
optional arguments:
-h, --help show this help message and exit
-i INFILE, --infile INFILE
-o OUTFILE, --outfile OUTFILE
If no input file is given, term2image reads from stdin.
Output of man which | term2image -o which.png
: