Skip to content
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

Add Image support using imgcat #4654

Closed
AM-I-Human opened this issue Jun 15, 2024 · 6 comments
Closed

Add Image support using imgcat #4654

AM-I-Human opened this issue Jun 15, 2024 · 6 comments

Comments

@AM-I-Human
Copy link

I know that is on roadmap and I think I can help by suggesting this.
I found this Python package that enable you to see images on the terminal.
It supports Wezterm, so with it you have full resolution images.
https://pypi.org/project/imgcat/

Considering that is python it's possible to take inspiration from it to make it.
This can enable a full markdown previewer for the terminal, I think the neovim community will love this.

Copy link

We found the following entry in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

@SkwalExe
Copy link

This uses Kitty's Terminal graphics protocol, which isn't supported by most terminal emulators...

@AM-I-Human
Copy link
Author

I understand we must consider that only terminal emulators with rendering capabilities can render images well. (I found this discussion for windows terminal; I didn't grasp it fully but place here for reference microsoft/terminal#5746)
I found this repo that seems better https://github.com/AnonymouX47/term-image
That support other images terminal using block mode: https://github.com/AnonymouX47/termvisage

@AM-I-Human
Copy link
Author

I found this #384, on rich. I think it is better if I close this then.

Copy link

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

@nithin-mk
Copy link

This uses Kitty's Terminal graphics protocol, which isn't supported by most terminal emulators...

No, imgcat uses the iTerm2 Inline Images Protocol, which is supported by many terminals, including VS Code now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants