Bug 499584 - .tga images flashbangs the screen when zooming in
Summary: .tga images flashbangs the screen when zooming in
Status: RESOLVED FIXED
Alias: None
Product: gwenview
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.12.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords: accessibility, usability
: 498454 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-02-06 08:49 UTC by Fernando M. Muniz
Modified: 2025-08-22 08:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Zooming on it makes everything bright. (2.42 MB, video/x-matroska)
2025-02-06 08:52 UTC, Fernando M. Muniz
Details
This one is even worse. (256.02 KB, image/x-tga)
2025-02-06 08:54 UTC, Fernando M. Muniz
Details

Note You need to log in before you can comment on or make changes to this bug.
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).