Skip to content

Issue with sixel rendering: stretched bands #17711

@PhMajerus

Description

@PhMajerus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-RenderingText rendering, emoji, complex glyph & font-fallback issuesIn-PRThis issue has a related PRIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions