-
Notifications
You must be signed in to change notification settings - Fork 82
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
True (24-bit) color #44
Comments
@HalosGhost SIXEL format supports RGB or HLS color format. but these resolution are less than 24bit. In addition, most terminal implementations can not represent colors more than its number of color registers (up to 256). |
Actually, if I understand correctly, a variety of TEs these days support 24-bit true color. The |
SIXEL is a palette-based imaging format. So Its colors should be up to about 256 colors from the viewpoint of efficiency. |
Yo, st and alacritty support true colors. |
I am interested in adding a "mostly" true-color RGB option for the existing sixel encoding in my windowing library. Looking at the manual on sixel, it doesn't look too promising. But I'm wondering how this scheme would work for terminals vs real hardware:
I expect real hardware would produce garbage on screen, with whatever the last register color set being used for every instance of that color register being used (and those colors possibly impacting all sixel images on screen, not just the last one sent). Or possibly not displaying an image at all, if registers are allowed to be set only once. But for terminals (e.g. Xterm), they might not care that registers are being repeated. The other question is the RGB/HSL parsing: is it generic enough in real hardware to accept additional parameters? If this was sent to real hardware, would any pixels come out? "#1;1;100;100;100;100#1ttt" If so, then one could append alpha to RGB/HSL and still have graceful fallback to opaque. EDIT: I just tried this against xterm, and the result is that no pixels come out. So RGBA is out for sixel. |
RGBA is 32bit, not 24bit. |
Is there any chance of libsixel supporting true color (i.e., 24-bit color) in the future? If it managed to get this feature, we could have incredibly high-quality images on-terminal.
I know this might be a significant undertaking, but it would be incredible if it happened!
The text was updated successfully, but these errors were encountered: