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

Support for terminal graphics protocols #23

Open
AnonymouX47 opened this issue Apr 8, 2022 · 5 comments
Open

Support for terminal graphics protocols #23

AnonymouX47 opened this issue Apr 8, 2022 · 5 comments
Assignees
Labels
enhancement New feature / Improvement suggestion or request graphics Related to the interface common to graphics-based render styles

Comments

@AnonymouX47
Copy link
Owner

AnonymouX47 commented Apr 8, 2022

I will be implementing support for popular terminal graphics protocols, first in the library and then integrate them into the Image viewer as initially requested by users @paw-lu and @leo-arch.

I will try to make the interfaces common throughout as much as possible.

Progress:

Protocol Library CLI TUI
kitty ✔️ ✔️ ✔️
iterm2 ✔️ ✔️ ✔️
sixel
terminology
@AnonymouX47 AnonymouX47 self-assigned this Apr 8, 2022
@AnonymouX47 AnonymouX47 added enhancement New feature / Improvement suggestion or request lib Related to the library (Not to be used anymore) cli Related to the image viewer's CLI (Not to be used anymore) tui Related to the image viewer's TUI (Not to be used anymore) labels Apr 8, 2022
@AnonymouX47
Copy link
Owner Author

This currently waiting on #16

@AnonymouX47 AnonymouX47 pinned this issue Apr 8, 2022
@AnonymouX47
Copy link
Owner Author

AnonymouX47 commented Apr 26, 2022

#16 has been merged and the changes released in version 0.3.0.
Now waiting on #30.

@leo-arch
Copy link

Waiting for it!

@AnonymouX47 AnonymouX47 added the graphics Related to the interface common to graphics-based render styles label Jun 23, 2022
@AutumnMeowMeow
Copy link

AutumnMeowMeow commented Jul 4, 2022

Hi! Just noticed this project posted to Reddit, looks nice! A couple things for you:

  • Recent state of terminal bitmap graphics support, in case you wish to test on even more terminals: https://www.reddit.com/r/linux/comments/t3m7zm/quick_roundup_of_bitmap_graphics_availability_in/ . The part at the end could be useful too, for determining the number of colors, text cell pixel size, and blending better with ANSI colors.

  • For sixel encoding, depending on your goals you might consider either linking to an existing encoder or writing your own. libsixel is good and well supported, though my understanding is some of the API might not be perfect. If you want to write your own, you might look at chafa and notcurses: both have really nice fast sixel encoders, easily fast enough to support animation at 100+ FPS. If you choose to break up sixel images into smaller pieces, you could get much higher apparent bit depth, for example.

Anyway, always happy to see more in this space. Have fun!

💗

@AnonymouX47
Copy link
Owner Author

AnonymouX47 commented Jul 5, 2022

Thanks. I really appreciate your interest and you reaching out.

I've gone through the Reddit post, the info will be definitely be really useful, including some links within the post also... most especially for sixel (which I'll be adding support for soon).

Also, thanks for the info on sixel, I'll look more into the encoder options soon.
I might end up implementing an encoder cos I've read reports about libsixel being substantially slower than notcurses (maybe not the current status though) but for a start, I'll use libsixel and see how it goes.

Once again, thanks so much. 😃

@AnonymouX47 AnonymouX47 added this to the 0.7.0 milestone Feb 23, 2023
@AnonymouX47 AnonymouX47 removed lib Related to the library (Not to be used anymore) cli Related to the image viewer's CLI (Not to be used anymore) tui Related to the image viewer's TUI (Not to be used anymore) labels Apr 16, 2023
@AnonymouX47 AnonymouX47 removed this from the 0.7.0 milestone Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature / Improvement suggestion or request graphics Related to the interface common to graphics-based render styles
Projects
None yet
Development

No branches or pull requests

3 participants