Fix Sixel rendering of GIF images with transparency #148
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #147 (kind of).
As suggested, I just replaced
P2=1
withP2=0
while generating Sixel images.However, this is rather disappointing. Not all terminals seem to support this parameter very well.
Screenshots are more descriptive than words. I configured the terminal with a background when I could.
Layout is:
With
P2=1
(current)chafa -f sixels -d 1 poke.gif
cat poke.sixel
With
P2=0
(new)chafa -f sixels -d 1 poke.gif
cat poke.sixel
That looks like an improvement for
foot
but a regression forwezterm
andzellij
.I think
wezterm
supports Kitty protocol, so I assume it will be preferred over Sixel most of the time?Regarding
zellij
, rendering of GIF is already quite poor because it causes a lot of flickering (regardless ofP2
value).Finally, for
xterm
, it fixes the layered frames but at the cost of a black background even for static images.What are your thoughts on these results?