Bug 453131 - Okular cannot open JPEG-XL (.jxl) files
Summary: Okular cannot open JPEG-XL (.jxl) files
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: Image backend components (show other bugs)
Version: 22.04.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: dnovomesky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-28 10:15 UTC by Magnus Anderson
Modified: 2022-04-29 12:13 UTC (History)
1 user (show)

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


Attachments
A jxl file which okular cannot open (and gwenview can) (3.51 KB, image/jxl)
2022-04-28 10:25 UTC, Magnus Anderson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Anderson 2022-04-28 10:15:47 UTC
SUMMARY
See title

STEPS TO REPRODUCE
1. Create or find an image/jxl file.
2. Open it using Okular

OBSERVED RESULT
Popup opens with
> Could not open file:///home/mag/Pictures/Screenshots/Screenshot_1.jxl. 
> Can not find a plugin which is able to handle the document being passed.
Printed to stdout says
> org.kde.okular.core: No plugin for mimetype '"image/jxl"'.

EXPECTED RESULT
Open the .jxl file

SOFTWARE/OS VERSIONS
Operating System: Garuda Linux
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.17.4-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-1065G7 CPU @ 1.30GHz
Memory: 11.3 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Plus Graphics

ADDITIONAL INFORMATION
kimageformats has a library that should be able to handle this, I think. It works in other KDE apps. So it should hopefully be a simple fix.
Comment 1 Magnus Anderson 2022-04-28 10:25:27 UTC
Created attachment 148430 [details]
A jxl file which okular cannot open (and gwenview can)
Comment 2 dnovomesky 2022-04-29 12:13:10 UTC
Git commit 7c596be34a79e8279687c71079e0d9b65143feab by Daniel Novomeský.
Committed on 29/04/2022 at 09:34.
Pushed by aacid into branch 'master'.

kimgio: enable JPEG XL format

M  +2    -1    generators/kimgio/libokularGenerator_kimgio.json
M  +1    -1    generators/kimgio/okularApplication_kimgio.desktop
M  +1    -1    generators/kimgio/okularKimgio.desktop
M  +1    -1    generators/kimgio/org.kde.mobile.okular_kimgio.desktop

https://invent.kde.org/graphics/okular/commit/7c596be34a79e8279687c71079e0d9b65143feab