Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CanvasImage is rendered incorrectly - partial display #698

Closed
NikiforovAll opened this issue Jan 22, 2022 · 1 comment
Closed

CanvasImage is rendered incorrectly - partial display #698

NikiforovAll opened this issue Jan 22, 2022 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@NikiforovAll
Copy link

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 NikiforovAll added the bug Something isn't working label Jan 22, 2022
@NikiforovAll
Copy link
Author

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

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done 🚀
Development

No branches or pull requests

2 participants