romanin-rf / tpng.py

A special file format for displaying images in the terminal.

Home Page:https://pypi.org/project/tpng.py

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A special file format for displaying images in the terminal.

https://pypi.org/project/tpng.py

License:MIT License


Languages

Language:Python 98.6%Language:Batchfile 1.4%