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

wezterm imgcat fails to display images without alpha channel #3529

Closed
Mukundan314 opened this issue Apr 16, 2023 · 3 comments
Closed

wezterm imgcat fails to display images without alpha channel #3529

Mukundan314 opened this issue Apr 16, 2023 · 3 comments
Labels
bug Something isn't working fixed-in-nightly This is (or is assumed to be) fixed in the nightly builds.

Comments

@Mukundan314
Copy link

Mukundan314 commented Apr 16, 2023

What Operating System(s) are you seeing this problem on?

Linux Wayland

Which Wayland compositor or X11 Window manager(s) are you using?

sway

WezTerm version

20230408-112425-69ae8472
20230415-161506-c544b0ed (nightly)

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

wezterm imgcat fails to display PNG images without a alpha channel.

To Reproduce

curl https://0x0.st/H8Si.png -o test-image.png
wezterm imgcat test-image.png  # this does not work
magick convert test-image.png png32:test-image-fixed.png
wezterm imgcat test-image-fixed.png  # this works

Configuration

no config

Expected Behavior

The image should be displayed

Logs

10:06:31.700 ERROR wezterm_gui::glyphcache > Error decoding image: inconsistent 224x306 -> 205632
10:06:31.715 WARN wezterm_gui::glyphcache > decoder thread terminated

Anything else?

This problem does not occur when using kitty image protocol, with any of the transfer modes.

@Mukundan314 Mukundan314 added the bug Something isn't working label Apr 16, 2023
@Mukundan314 Mukundan314 changed the title wezterm imgcat fails to display images wih wezterm imgcat fails to display images without alpha channel Apr 16, 2023
wez added a commit that referenced this issue Apr 16, 2023
@wez
Copy link
Owner

wez commented Apr 16, 2023

This should be resolved now in main.

It typically takes about an hour before commits are available as nightly builds for all platforms. Linux builds are the fastest to build and are often available within about 20 minutes. Windows and macOS builds take a bit longer.

Please take a few moments to try out the fix and let me know how that works out. You can find the nightly downloads for your system in the wezterm installation docs.

If you prefer to use packages provided by your distribution or package manager of choice and don't want to replace that with a nightly download, keep in mind that you can download portable packages (eg: a .dmg file on macOS, a .zip file on Windows and an .AppImage file on Linux) that can be run without permanently installing or replacing an existing package, and can then simply be deleted once you no longer need them.

If you are eager and can build from source then you may be able to try this out more quickly.

@wez wez added the fixed-in-nightly This is (or is assumed to be) fixed in the nightly builds. label Apr 16, 2023
@AnonymouX47
Copy link

AnonymouX47 commented Apr 16, 2023

This is among the issues I pointed out in #3263 (comment) (added a couple more since the original comment).

I'm sorry, I've been really busy since then. I'll make sure I find some time this week to check the current state of things and open a separate issue for each case that still occurs and any new one I find.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working fixed-in-nightly This is (or is assumed to be) fixed in the nightly builds.
Projects
None yet
Development

No branches or pull requests

3 participants