wezterm can't deal with grayscale images in png format #3742
Labels
bug
Something isn't working
fixed-in-nightly
This is (or is assumed to be) fixed in the nightly builds.
What Operating System(s) are you seeing this problem on?
Windows
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20230517-063445-6bcb8eed
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
The
wezterm imgcat
command fails to correctly display grayscale images and wezterm cannot read grayscale images as backgrounds.I discovered that the issue stems from this commit, which does not handle the L8 format (e.g., grayscale images) in the fix for #3529, causing errors to occur.
To Reproduce
Below is how to reproduce the bug using
wezterm imgcat
.find an grayscale png
wezterm imgcat <filename>
Something like
will appear in log and image is not displayed.
Configuration
no config
Expected Behavior
There should not be such log and the image should be displayed
Logs
19:05:16.147 ERROR wezterm_gui::glyphcache > Error decoding image: unimplemented PNG conversion from L8
19:05:16.241 WARN wezterm_gui::glyphcache > image decoder thread terminated
Anything else?
No response
The text was updated successfully, but these errors were encountered: