Some sixel images are not displayed #4583
Replies: 3 comments 1 reply
-
I created additional logs on Wezterm for macos, where the issue also appears: After the shell initialisation, the only command was In the server log on line 52278 there is a discard message, which has a similar size of bytes as the image is.
|
Beta Was this translation helpful? Give feedback.
-
With the successfully displayed image, at around the same location ther is a successful log entry:
tmux-client-26875.log |
Beta Was this translation helpful? Give feedback.
-
What if you increase |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Nicholas,
in my recent installation on Windows11/WSL2/debian trixie I encountered a strange issue. Under tmux sometimes images are not displayed, depending on their size, whereas without tmux, they are. I found this, when I was testing yazi, where, depending on the terminal width, sometimes images were not displayed. Resizing the window to a much smaller size would then display the image.
I then took a large image >4000px in width and looped over widths ranging between 1730 - 1800 using
img2sixel -w $s testimage.png
and saw that every now and then an image would be displayed some other times not. I attach examples of two of those files, which were obtained with two specific width settings.I tested this under Wezterm 20250713-135109-85c587f9 and Windows Terminal Version: 1.22.12111.0 The terminal windows were sized at 149 columns x 38 lines.
Tmux was compiled from master today with utf8proc and sixel enabled. tmux config file is here: https://github.com/michaelrommel/dotfiles/blob/main/dot_config/tmux/tmux.conf
When running without tmux, the images are rendered differently: Wezterm shrinks the image, so that it fits inside the window, Windows Terminal overflows in both directions.
Inside tmux, terminals show images, that are displayed (1736) with the same smaller size:
The prerendered sixel files and the original png are here:
sixel_testimages.zip
Please tell me, which logs you would need to look into this topic, if you cannot reproduce this issue. I will try later under macos, if the issue persists there as well (Wezterm and Ghostty). If anyone else has encountered this issue, please comment if you could resolve it.
With tmux 3.5a none of the images were displayed.
Thanks,
Michael.
Edit: on macos Wezterm shows the same behaviour as under Windows/WSL. Ghostty does not support the sixel protocol. Here I can see under tmux, when I
cat test_1735.six
nothing gets displayed, whereas with 1736 I see the placeholder SIXEL IMAGE (92x22)+++++ displayed. This leads me to believe, that tmux itself has a problem with the 1735 image data and does not even forward it to the terminal.Now I believe this is independent from the application img2sixel, because the same effect occurs also in yazi. I do not know (yet) if yazi is linked with the same library, but I doubt it, because it is written in Rust and the img2sixel is - I believe - much older...
Beta Was this translation helpful? Give feedback.
All reactions