I was looking at a character's textures when I noticed that when I zoomed it, the entire screen became a very bright white light.
Created attachment 178010 [details] Zooming on it makes everything bright.
Created attachment 178011 [details] This one is even worse.
Added accessibility tag since this can really hurt people's eyes.
The problem is solved by setting the X/alpha channel in the image to 0xFF using the TGA plugin. Unlike the RGBX64 format, it doesn't require it to be set to the maximum value (0xFF), but at this point I think it's correct to set it to that value (see the QImage doc). However, I don't rule out the possibility of a problem in GWenView: RGB32 with the X channel not set to 0xFF can happen. I just opened a MR on the TGA plugin; maybe I'll add a fix for this issue as well.
Integrated a possible fix for this issue here: https://invent.kde.org/frameworks/kimageformats/-/merge_requests/393 Given GWenView's poor behavior with attached images, I think a check should be added to GWenView as well.
*** Bug 498454 has been marked as a duplicate of this bug. ***
Fixed upstream (TGA plugin).