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

Sixel encoding for images and output for terminals #38

Closed
TeddyDD opened this issue Sep 30, 2023 · 8 comments
Closed

Sixel encoding for images and output for terminals #38

TeddyDD opened this issue Sep 30, 2023 · 8 comments
Labels
good first issue Good for newcomers

Comments

@TeddyDD
Copy link

TeddyDD commented Sep 30, 2023

Just an idea, sixel format could be used to display images in terminal.

@kaikalii
Copy link
Member

kaikalii commented Oct 8, 2023

I support this.
I have other things higher in my todo, but if anyone wants to implement this, know that you cannot use any of the existing Rust crates that depend on libsixel, as they require it as a local dependency - something I do not want to requre.
I suggest looking at icy_sixel

@kaikalii kaikalii added the good first issue Good for newcomers label Oct 8, 2023
@exxjob
Copy link

exxjob commented Jan 20, 2024

Just to note: terminal emulators have different ideas of what's worth supporting, so compatibility can be a pain. There's ReGIS, Sixel, Kitty, iTerm2, and finally mosaics and ueberzug which are entirely different things. You might find Chafa and NotCurses most flexible, both seem to have Rust wrappers, but I can't vouch for those. https://www.arewesixelyet.com

@BaerLKR
Copy link
Contributor

BaerLKR commented Sep 12, 2024

Should sixel be a output format, like png, jpg, ... or should it be in the show_image function?
I am not sure what way is better

@kaikalii
Copy link
Member

It would be part of &ims.

@JoaoFelipe3
Copy link
Contributor

This should get closed, since #557 just got merged.

@TeddyDD
Copy link
Author

TeddyDD commented Sep 28, 2024

Can we get other method of enabling it? I'd rather not mess with TERM variable. Perhaps env like UIUA_ENABLE_SIXEL or something?

@BaerLKR
Copy link
Contributor

BaerLKR commented Sep 29, 2024

Can we get other method of enabling it? I'd rather not mess with TERM variable. Perhaps env like UIUA_ENABLE_SIXEL or something?

that would easily be possible
i don't know where to document it tho, so that the user knows the env var does something

@TeddyDD
Copy link
Author

TeddyDD commented Nov 9, 2024

Since Uiua supports Sixel images now, I think this can be closed. Thanks @BaerLKR!

@TeddyDD TeddyDD closed this as completed Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants