Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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 sixel format for images #79

Closed
Ratakor opened this issue Sep 11, 2024 · 5 comments
Closed

Support sixel format for images #79

Ratakor opened this issue Sep 11, 2024 · 5 comments

Comments

@Ratakor
Copy link

Ratakor commented Sep 11, 2024

Support sixel format for images.
This can be useful on terminal that don't support kitty graphics but support sixel.

@rockorager
Copy link
Owner

rockorager commented Sep 11, 2024 via email

@seityaya
Copy link

I can offer my library that I wrote because I saw this message, at the moment it is implemented in C, but for those who know Zig it will not be difficult to port it.
https://github.com/seityaya/sixel_c

@rockorager
Copy link
Owner

I can offer my library that I wrote because I saw this message, at the moment it is implemented in C, but for those who know Zig it will not be difficult to port it. https://github.com/seityaya/sixel_c

@seityaya This is looking really good. Do you have any benchmarks compared to libsixel? I know dnkl in particular has been critical of libsixel's performance, and such a simple library in C would be greatly appreciated in many projects.

@seityaya
Copy link

seityaya commented Oct 25, 2024

@rockorager I have not compared the performance of the algorithm with other implementations. In the gif example, a raw 400 by 400 24-bit rgb image is converted to a sixel sequence in one core in ̶0̶.̶1̶ ̶s̶e̶c̶o̶n̶d̶s̶ ̶o̶r̶ ̶1̶0̶ ̶i̶m̶a̶g̶e̶s̶ ̶p̶e̶r̶ ̶s̶e̶c̶o̶n̶d̶. Depending on the palette and the size of the image, this figure can vary widely.

release on and optimisation last commit
image
71 images per second

@VarLad
Copy link

VarLad commented Nov 24, 2024

@rockorager Would you be willing to accept something like Chafa instead?
It has much better support for sixels (both in speed and quality, as evident from hpjansson/chafa#174 (comment) ), but also supports: ITerm2 Inline Images protocol, as well as Kitty Terminal Protocol. It also supports Octants from Unicode 16 for image rendering (more on those here: microsoft/cascadia-code#711 ). Has a neat C API as well.

I found out about this through dnkl's post on Treehouse https://social.treehouse.systems/@dnkl/113519559551012343 :P

Repository owner locked and limited conversation to collaborators Dec 15, 2024
@rockorager rockorager converted this issue into discussion #131 Dec 15, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants