Bug 496443 - JPEG XL image stretched issue.
Summary: JPEG XL image stretched issue.
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kimageformats
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Alex Merry
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-18 23:48 UTC by Rean
Modified: 2024-11-19 11:34 UTC (History)
3 users (show)

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


Attachments
Jxl distortion (722.76 KB, image/png)
2024-11-19 09:50 UTC, Rean
Details
This image (380.15 KB, application/zip)
2024-11-19 11:11 UTC, Rean
Details

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