command2img

This is an simple program to convert a command line to image.


License
MIT
Install
pip install command2img==0.3.1

Documentation

command2img

GitHub license PyPI - Downloads PyPI

Motivation

This program was developed from the need I had to capture the output of a program as an image to insert into a report.

Install

To install it, you can use the python package manager:

pip install command2img

Update

pip install --upgrade command2img

Uninstall

pip uninstall command2img

Examples

using exa (tree):

exa --tree --icons | py -m command2img

tree image

using date:

date | py -m command2img -bt 0 -tf white

echo image

using echo:

echo -n "Example echo" | py -m command2img -fs 50 -m 15 -ff ~/Inspiration-Regular.ttf

date image

using cat:

cat README.md | py -m command2img -bc "black" -tf "white"

cat image