helviojunior / ansi2image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ANSI to Image

A Python lib to convert ANSI text to Image

Build Build Downloads Supported Versions Contributors PyPI version License: GPL-3.0

ANSI2Image officially supports Python 3.8+.

Main features

  • Read ANSI file (or ANSI stdin) and save an image (JPG or PNG)

Installation

pip3 install --upgrade ansi2image

Help

ANSI to image v0.1.1 by Helvio Junior
ANSI to Image convert ANSI text to an image.
https://github.com/helviojunior/ansi2image
    
positional arguments:
  [filename]             File path or - to stdin

Options:
  -o--output [filename]  image output file.
  --font [font]          font type. (default: JetBrains Mono Regular).
  --font-list            List all supported font family and variations
  -h, --help             show help message and exit
  -v                     Specify verbosity level (default: 0). Example: -v, -vv, -vvv
  --version              show current version

ANSI reference

https://en.wikipedia.org/wiki/_ANSI_escape_code

About

License:GNU General Public License v3.0


Languages

Language:Python 100.0%