Bug 499584

Summary: .tga images flashbangs the screen when zooming in
Product: [Applications] gwenview Reporter: Fernando M. Muniz <fernandommuniz>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: deadmeu, mircomir
Priority: NOR Keywords: accessibility, usability
Version First Reported In: 24.12.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=454808
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Zooming on it makes everything bright.
This one is even worse.

Description Fernando M. Muniz 2025-02-06 08:49:26 UTC
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.
Comment 1 Fernando M. Muniz 2025-02-06 08:52:15 UTC
Created attachment 178010 [details]
Zooming on it makes everything bright.
Comment 2 Fernando M. Muniz 2025-02-06 08:54:50 UTC
Created attachment 178011 [details]
This one is even worse.
Comment 3 Fernando M. Muniz 2025-08-18 15:48:16 UTC
Added accessibility tag since this can really hurt people's eyes.
Comment 4 Mirco Miranda 2025-08-18 21:24:36 UTC
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.
Comment 5 Mirco Miranda 2025-08-18 21:42:58 UTC
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.
Comment 6 A Linux User 2025-08-19 22:39:00 UTC
*** Bug 498454 has been marked as a duplicate of this bug. ***
Comment 7 Mirco Miranda 2025-08-22 08:16:40 UTC
Fixed upstream (TGA plugin).