Issue with sixel rendering: stretched bands #22092

Open
opened 2026-01-31 08:03:13 +00:00 by claunia · 0 comments
Owner

Originally created by @PhMajerus on GitHub (Aug 14, 2024).

Windows Terminal version

Canary 1.22.2261.0

Windows build number

10.0.22631.4037 x64

Description of the problem

I believe I may have found an issue with sixels images rendering.

When displaying sixels images with a transparent background (by using P0;1 and not drawing some pixels in any of the colors), it renders perfectly when displayed on its own.
image

But when it gets close to another sixel image, added either on the previous line, or on the second line of the multi-line image with transparency, its width gets weird.

image

When the other sixel image is added above, the first band/line of the multi-line image gets slightly stretched.
image

When the other sixel image is appended after the second line of the multi-line image, that band gets stretched.
image

Note this also seems to happen in conhost, but with less visible stretching (only noticeable at some font sizes).

Steps to reproduce

Here is the repro text file: test.txt

Expected Behavior

The sixel images to keep their dimensions regardless of other contents displayed in the terminal.

Actual Behavior

Sixel images sometimes get distorted with some bands stretched when other contents is displayed near them.

Originally created by @PhMajerus on GitHub (Aug 14, 2024). ### Windows Terminal version Canary 1.22.2261.0 ### Windows build number 10.0.22631.4037 x64 ### Description of the problem I believe I may have found an issue with sixels images rendering. When displaying sixels images with a transparent background (by using `P0;1` and not drawing some pixels in any of the colors), it renders perfectly when displayed on its own. ![image](https://github.com/user-attachments/assets/fef76824-b088-4b1b-b736-9523d39e6db0) But when it gets close to another sixel image, added either on the previous line, or on the second line of the multi-line image with transparency, its width gets weird. ![image](https://github.com/user-attachments/assets/5491e2ec-9846-4d90-9e00-671a1da62b49) When the other sixel image is added above, the first band/line of the multi-line image gets slightly stretched. ![image](https://github.com/user-attachments/assets/d8434943-4a84-4686-92bf-09ebfbaedbdf) When the other sixel image is appended after the second line of the multi-line image, that band gets stretched. ![image](https://github.com/user-attachments/assets/453e4524-f5cb-4f0c-bdda-b73a81f7c10d) Note this also seems to happen in conhost, but with less visible stretching (only noticeable at some font sizes). ### Steps to reproduce Here is the repro text file: [test.txt](https://github.com/user-attachments/files/16611729/test.txt) ### Expected Behavior The sixel images to keep their dimensions regardless of other contents displayed in the terminal. ### Actual Behavior Sixel images sometimes get distorted with some bands stretched when other contents is displayed near them.
claunia added the Area-RenderingIssue-BugIn-PRNeeds-Tag-FixProduct-Terminal labels 2026-01-31 08:03:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22092