Hacker Newsnew | past | comments | ask | show | jobs | submit | AnonymouX47's commentslogin

Umm... actually, it's still all text / font glyphs. Basically, it works via a terminal emulator running in the browser, rendering to a canvas.


ack, I was fooled by the screenshots. That is even less advisable than I had feared. the widgets would likely have very poor accessibility if they are implemented as text on canvas.


Performance should improve soon.


Meaning...?


Hello!

I've just released a new version of `term-image`. It's a Python package including a library, a CLI and a TUI for displaying and viewing/browsing images within a terminal.

It currently supports a whole lot of features including:

- Extensive API

- Kitty graphics support

- iTerm2 inline image support

- Support for PIL images, file paths, URLs

- Animations (even transparent ones)

- Browsing image directories recursively

- Automatic terminal support detection

Displaying an image can be as simple as

```

from term_image.image import from_file

image = from_file("path/to/image")

image.draw()

# OR

print(image)

```

and as extensive as possible...

Links:

- [Source](https://github.com/AnonymouX47/term-image)

- [PyPI](https://pypi.org/project/term-image/)

- [Docs](https://term-image.readthedocs.io/)

The project is open to contributions and I welcome everyone with knowledge and/or experience that could benefit the project.

Thank you very much!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: