[GH-ISSUE #729] Draw a graph, open a png image #533

Closed
opened 2026-03-04 01:05:48 +03:00 by kerem · 4 comments
Owner

Originally created by @OsvaldoTCF on GitHub (Apr 30, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/729

Hello. I need to generate graphics and present them.
I would like in a box, open an image with framebuffer, for example.

Originally created by @OsvaldoTCF on GitHub (Apr 30, 2022). Original GitHub issue: https://github.com/rivo/tview/issues/729 Hello. I need to generate graphics and present them. I would like in a box, open an image with framebuffer, for example.
kerem closed this issue 2026-03-04 01:05:48 +03:00
Author
Owner

@rivo commented on GitHub (Jun 10, 2022):

I'd like to add the display of images at some point but demand for this is low so it's not high on the list.

I.e. currently, tview doesn't support graphics.

<!-- gh-comment-id:1152529752 --> @rivo commented on GitHub (Jun 10, 2022): I'd like to add the display of images at some point but demand for this is low so it's not high on the list. I.e. currently, `tview` doesn't support graphics.
Author
Owner

@Awesome-Sauces commented on GitHub (Jul 14, 2022):

Would be nice if it did.

<!-- gh-comment-id:1183928203 --> @Awesome-Sauces commented on GitHub (Jul 14, 2022): Would be nice if it did.
Author
Owner

@akurdunkar commented on GitHub (Oct 2, 2022):

Hi, does this mean rendering an Image like ueberzug? or another way?

there has been some work done for a pure go implementation of ueberzug
Link
Although the creator says its "half-ass" it is useable and maybe some improvements can be made too.
It uses child windows (X Server) under the hood.
I have used it in gomp although the implementation isn't very robust making a primitive out of it is possible. I would like to know your views on this. @rivo

<!-- gh-comment-id:1264700684 --> @akurdunkar commented on GitHub (Oct 2, 2022): Hi, does this mean rendering an Image like [ueberzug](https://github.com/seebye/ueberzug)? or another way? there has been some work done for a pure go implementation of ueberzug [Link](https://gitlab.com/diamondburned/ueberzug-go) Although the creator says its "half-ass" it is useable and maybe some improvements can be made too. It uses child windows (X Server) under the hood. I have used it in [gomp](https://github.com/aditya-K2/gomp/blob/master/render/render.go) although the implementation isn't very robust making a primitive out of it is possible. I would like to know your views on this. @rivo
Author
Owner

@rivo commented on GitHub (Oct 2, 2022):

Not really sure that the uberzug GitHub page provides a good explanation of what exactly it does. But it sounds to me like it's using some X11 trickery to display images. I don't think tview will ever go that way. It's supposed to be platform-independent, at least to the extent that tcell is platform-independent. And it's also supposed to stay within the terminal so you can, for example, use a tview application over an SSH connection.

What I meant above was using primitive UTF-8 characters along with some colour information to roughly display an image. Something along the lines of this: https://justine.lol/printimage.html

<!-- gh-comment-id:1264731020 --> @rivo commented on GitHub (Oct 2, 2022): Not really sure that the `uberzug` GitHub page provides a good explanation of what exactly it does. But it sounds to me like it's using some X11 trickery to display images. I don't think `tview` will ever go that way. It's supposed to be platform-independent, at least to the extent that `tcell` is platform-independent. And it's also supposed to stay within the terminal so you can, for example, use a `tview` application over an SSH connection. What I meant above was using primitive UTF-8 characters along with some colour information to roughly display an image. Something along the lines of this: https://justine.lol/printimage.html
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#533
No description provided.