tpng.py

A special file format for displaying images in the terminal.


Keywords
tpng, py, console, console-color, image
License
MIT
Install
pip install tpng.py==0.1

Documentation

tpng.py

Description

The library has the ability to convert image to string for rich.

TPNG - is a library for converting images into a colour-coded string. Mapping is implemented via the rich library.

More information...

Installation

pip install --upgrade tpng.py

Examples

import tpng
from rich.console import Console

c = Console()
t = tpng.TPNG("image.png")

string = t.to_rich_image()

c.print(string)
default.webm

Author