-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display graphical images in terminal #5746
Comments
So we've already got #448 for display images with sixel graphics, though maybe this issue would make sense to leave open for supporting other binary image formats in the Terminal. Especially for something like gifs, which I don't think sixel is necessarily well suited for. |
I'm taking triage off this. It needs a spec, and we need to make sure that we follow the prevailing standards if we're ever going to do this. |
Comments from #4544. from @zyy1998
from @akho
|
This discussion between the authors of various terminal emulators may be relevant: https://gitlab.freedesktop.org/terminal-wg/specifications/issues/12 It looks like MinTTY went ahead and implemented iTerm2 escape sequences so perhaps this is worth considering as a de facto standard. |
I tried to use But both also had a lot more than I need or want. And both will only display images in their own terminal. I want to use Microsoft terminal and I want images to look like the mockup at wslutiliti.es (using I googled how to run X11 server in MS terminal and found this issue... I hope it's feasible. 🤷 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
no. If you'd like updates, click on the subscribe button to the right. |
Here is an interesting project about rendering videos in a terminal https://github.com/ghaiklor/terminal-canvas |
Here is the closest thing I found https://github.com/nabijaczleweli/termimage |
Has anyone had any success using ueberzug? |
|
I test it, it did not work. |
Just wanted to chime in as I'm excited for this... specifically being able to properly run neofetch with w3m wallpaper support... If it's any help, I think the escape sequence in iTerm2 would be the best case. I've always used that on MacOS and it's exceptional. Another one worth looking into might be tycat from the terminology terminal in enlightenment. Looking forward to seeing this happen - and honestly - I'd love to help out with it. |
Here another very good program for converting images to something that can be displayed in terminal with a lot of different options. |
This comment was marked as spam.
This comment was marked as spam.
Because it's complicated. Because ConPTY needs to support that (e.g. via VT passthrough) first before any other terminal on windows can display images generically. Best chances are to get it via #1173 . |
This comment was marked as off-topic.
This comment was marked as off-topic.
Apart from some well-supported future API for this, it would be nice if at least the legacy solutions were not broken. It has been working since Windows XP until Windows 10 and even ConEmu emulates this behavior. And a sort of popular console apps such as Far Manager could utilize it in some clever ways: Unfortunately this no longer works with Windows 11 Terminal. I don't know what's missing to make it work again because |
The Python package, image-in-terminal, performs well by replacing every two pixels of an image with the character ▀ (Upper Half Block). This makes it most suitable for displaying low-resolution images. While images with higher resolutions can also be displayed in the terminal, performance may decrease and the terminal’s contents will need to be zoomed out to view the images. This package served my small project well, and it might also be useful for others until the Windows Terminal implements support for displaying images |
Hey! I recently have been using Windows Terminal to SSH into a Linux VM and found out that there is functionality within neofetch to change the ASCII image to a real image (I know I'm late). However, it wasn't working on my Windows Terminal so I googled and found this issue page. I notice that it is very old so I have some questions:
|
Yes, to both questions. An initial implementation would almost certainly implement sixels first, since we already have a basic sixel parser (and related code) and it's the most basic of format. And sixels work over SSH. (Edit: And the linked formats both support SSH as well.) |
Oh wow, that's great! Thanks for the update! |
#1173 (comment) "experimental.connection.passthroughMode": true, |
having spent a fair amount of time playing around with the different Image protocols in Sixel Module which supports Sixel and experimental support for IIP and Kitty Graphics. I really wish WT implemented Kitty Graphics Protocol Using the image binary data like InlineImageProtocol and Kitty does is just way easier and faster. And kitty gives you alot of control on how to render, position, animation and supports compression etc. Sixel is really cool but feels kinda inefficient in comparison. |
Description of the new feature/enhancement
It would be nice to have the ability to display graphical images in the terminal by using the API provided by the Windows Terminal. Maybe something similar to https://sw.kovidgoyal.net/kitty/kittens/icat.html or https://www.iterm2.com/documentation-images.html
The text was updated successfully, but these errors were encountered: