spectre.console icon indicating copy to clipboard operation
spectre.console copied to clipboard

CanvasImage is rendered incorrectly - partial display

Open NikiforovAll opened this issue 3 years ago • 1 comments

Information

  • OS: Windows
  • Version: Version 10.0.19041 Build 19041
  • Terminl: Windows Terminal

Describe the bug

CanvasImage is partially rendered

To Reproduce

var fileName = @"cake.png";

AnsiConsole.WriteLine(fileName);
var image = new CanvasImage(fileName).MaxWidth(32);
AnsiConsole.WriteLine();
AnsiConsole.Write(new Panel(image));

image

Full application:

https://github.com/NikiforovAll/cli-with-spectre-console

DownloadBot.cs command contains code that uses CanvasImage.

Full application:

Expected behavior The image is drawn as expected.

Screenshots

image

Additional context

Shell: gitbash.exe. The issue is preserved in the Release version of the application.

NikiforovAll avatar Jan 22 '22 09:01 NikiforovAll

The issue reproduces inside devcontainer (mcr.microsoft.com/vscode/devcontainers/dotnet)

image

NikiforovAll avatar Jan 22 '22 09:01 NikiforovAll