Bug 497297 - Digikam flatpak fails to load some jxl images
Summary: Digikam flatpak fails to load some jxl images
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kimageformats
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.8.0
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Alex Merry
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-10 21:40 UTC by Jannis
Modified: 2024-12-14 11:51 UTC (History)
3 users (show)

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


Attachments
picture which triggers the issue (3.18 MB, image/jxl)
2024-12-10 21:40 UTC, Jannis
Details
jxl image which does not trigger the issue (404.33 KB, image/jxl)
2024-12-10 21:42 UTC, Jannis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jannis 2024-12-10 21:40:59 UTC
Created attachment 176500 [details]
picture which triggers the issue

SUMMARY

When previewing *some* jxl files, the preview window just shows a 'Failed to load image' information.
The same image can be viewed with the 8.4.0 snap version and also with 8.5.0 AppImage.

STEPS TO REPRODUCE
1. Download attached picture and save to one of your albums
2. Open the album and switch to the preview window
3. Click on the picture to activate the preview for the given picture
4. Observe failure message on top right corner of the preview area

OBSERVED RESULT
Image preview stays blank

EXPECTED RESULT
Preview of the selected Image

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 24.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.11.0-9-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6600 CPU @ 3.30GHz
Memory: 15,0 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 530

ADDITIONAL INFORMATION
I can provide an additional image which is in jxl format which does not trigger this behavior.

This behavior was also observed by my brother on another computer (also running Ubuntu). He also confirmed that this issue is present in x11 as well as in wayland.
Comment 1 Jannis 2024-12-10 21:42:28 UTC
Created attachment 176501 [details]
jxl image which does not trigger the issue

adding a picture which does not trigger the issue.
This picture will be rendered just as expected.
Comment 2 Maik Qualmann 2024-12-10 21:48:24 UTC
digiKam loads JXL images with the KImageFormat plugins. Please report the problem together with the sample image there.

Unexpected event 16384 instead of JXL_DEC_COLOR_ENCODING

Maik
Comment 3 Maik Qualmann 2024-12-11 20:29:12 UTC
I can reproduce the problem here under openSUSE. The image can be loaded in our AppImage. I suspect that it has something to do with the compile-time configuration of libjxl. Since Gwenview or Okular are also affected, I'm moving it to the KImageFormat plugins.

Maik
Comment 4 Albert Astals Cid 2024-12-12 08:40:48 UTC
Fixed in KF 6.9 (once it releases)
Comment 5 Jannis 2024-12-14 11:51:07 UTC
Thanks to both of you.

I just realized, that I also can´t export these jxl files.
This also works, on the 8.4.0 snap. Do you know if this is for the same reason and therefore also already fixed? Or if I should make a new bug report (haven´t searched jet if I find some thing similar in the tracker though).