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.
pip install --upgrade tpng.py
import tpng
from rich.console import Console
c = Console()
t = tpng.TPNG("image.png")
string = t.to_rich_image()
c.print(string)