Bug 496443

Summary: JPEG XL image stretched issue.
Product: [Frameworks and Libraries] frameworks-kimageformats Reporter: Rean <techsav>
Component: generalAssignee: Alex Merry <alex.merry>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, kdelibs-bugs, mircomir
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Jxl distortion
This image

Description Rean 2024-11-18 23:48:38 UTC
OBSERVED RESULT

Some JPEG XL images opened in applications like Gwenview, Okular, and Nomacs, anything that relies on Kimageformats, JPEG XL shows up stretched. It's like the image is rotated slightly to the right with a melt effect from top to bottom.

EXPECTED RESULT
Images should show normally

Operating System: ArcoLinux 
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0

ADDITIONAL INFORMATION
Comment 1 Rean 2024-11-18 23:54:06 UTC
Extra info: This is def a new issue because previously, on older versions of Kimageformats, in the mentioned applications, the images always showed normally; it's only as of late this started happening, and this only affects Kimageformats-reliant applications; any other image viewer that doesn't rely on Kimageformats shows the images properly.
Comment 2 Mirco Miranda 2024-11-19 08:38:55 UTC
You wrote "some JPEG XL images", please attach an image showing the problem.
Comment 3 Rean 2024-11-19 09:50:06 UTC
Created attachment 175943 [details]
Jxl distortion

As you can see here, Gwenview, Nomacs, Okular, and an application called Manga Reader all show the image distorted. Also, this only seems to happen on very specific grayscaled images. Also, if I downgrade to kimageformats version 6.7.0 from 6.8.0, these distortions go away.
Comment 4 Mirco Miranda 2024-11-19 10:45:24 UTC
(In reply to Rean from comment #3)
> As you can see here, Gwenview, Nomacs, Okular, and an application called
> Manga Reader all show the image distorted. Also, this only seems to happen
> on very specific grayscaled images. Also, if I downgrade to kimageformats
> version 6.7.0 from 6.8.0, these distortions go away.

I'm not saying I don't believe you, just that I need the JXL file that is distorted to fix the plugin issue.
Can you attach the offending JXL file here?
Comment 5 Rean 2024-11-19 11:11:40 UTC
Created attachment 175949 [details]
This image

Alright here's the image.
Comment 6 Mirco Miranda 2024-11-19 11:21:11 UTC
OK, it's a Gray+Alpha image. The bug was already fixed by MR !267 (https://invent.kde.org/frameworks/kimageformats/-/merge_requests/267) and will be included in KDE Frameworks Version: 6.9.0.
Comment 7 Mirco Miranda 2024-11-19 11:34:54 UTC
(In reply to Rean from comment #5)
> Alright here's the image.

Thanks for reporting.