Bug 391781 - Add support for SIXEL in Konsole
Summary: Add support for SIXEL in Konsole
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-12 21:05 UTC by Mathieu MD
Modified: 2023-07-13 07:21 UTC (History)
23 users (show)

See Also:
Latest Commit:
Version Fixed In: 22.04
Sentry Crash Report:


Attachments
attachment-2860574-0.html (1.06 KB, text/html)
2023-07-13 07:21 UTC, tcanabrava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu MD 2018-03-12 21:05:54 UTC
It would be nice to be able to simply `cat image.six` (or probably more often `img2sixel image.jpg |cat`?) and get the image displayed right inside Konsole. Xterm already has support for Sixel (if launched `xterm -xrm "XTerm*decTerminalID: vt340" -xrm "XTerm*numColorRegisters: 256"`).

SIXEL: https://github.com/saitoha/libsixel
Comment 1 Kurt Hindenburg 2019-01-02 03:07:58 UTC
Well at some point I wonder if we're trying to do too much in a terminal... the images look good in xterm though.
Comment 2 Egmont Koblinger 2019-01-02 08:40:28 UTC
> Well at some point I wonder if we're trying to do too much in a terminal...

Me too :)

You might find a few probably interesting thoughts in the VTE counterpart of this feature request at https://bugzilla.gnome.org/show_bug.cgi?id=729204, in particular in comment_15 thereof.
Comment 3 Klaus Frank 2019-03-02 22:01:41 UTC
I do not think adding this feature is too much.
As xterm already supports it and it has only one MB total in installed package size. I think adding this is very useful, it allows building console applications that can handle captures without relying on the xserver and also works over ssh.
Comment 4 Omar 2020-11-26 02:47:27 UTC
*** This bug has been confirmed by popular vote. ***
Comment 5 phrxmd 2021-01-03 09:41:28 UTC
I like this, because unlike many image extensions, this is based on an actual industry standard, it's supported by DEC VTs as well as several Unix terminal emulators (xterm, mlterm, active work in VTE) and there are quite a few applications now that use it.

I would tend to agree with the point in the VTE discussion that it's better to think of a general way to implement images and use Sixel and Sixel-enabled appliations as the test case, rather than supporting Sixel specifically.
Comment 6 Martin Sandsmark 2021-11-02 15:26:43 UTC
https://invent.kde.org/utilities/konsole/-/merge_requests/517 has the basics.

Sixel is a horrible, horrible format, for the record. And a terminal is no place for images, images are per definition graphical, but it isn't that hard for at least basic support.

Theoretical "proper" support with reflowing etc. is basically impossible, just see how horribly slow xterm gets in VT340 mode (and that is still with a 1000px limit). But implementing enough to enable what people usually use it for should be feasible.
Comment 7 Nate Graham 2022-02-10 22:16:32 UTC
This was just done by Matan Ziv-Av with https://invent.kde.org/utilities/konsole/-/merge_requests/594 for Konsole 22.04!
Comment 8 tcanabrava 2023-07-13 07:21:23 UTC
Created attachment 160262 [details]
attachment-2860574-0.html

We already support Sixel

On Thu, 13 Jul 2023 at 07:05 Sam James <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=391781
>
> Sam James <sam@gentoo.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |sam@gentoo.org
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.