Qt plug-in to allow Qt and KDE based applications to read/write JXL images.
Work in progress experimental implementation using libjxl
!Important! Clone must be --recursive
to include third party packages
Code for download and compilation:
git clone --depth 1 https://gitlab.com/wg1/jpeg-xl.git --recursive
cd jpeg-xl
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DJPEGXL_ENABLE_PLUGINS=ON -DBUILD_TESTING=OFF -DJPEGXL_WARNINGS_AS_ERRORS=OFF -DJPEGXL_ENABLE_SJPEG=OFF ..
make
Code for installation (run as root):
make install
Check if the image-jxl.xml
file was installed to /usr/share/mime/packages/
folder and run (as root):
update-mime-database /usr/share/mime/
Download and build:
git clone --depth 1 https://github.com/novomesk/qt-jpegxl-image-plugin
cd qt-jpegxl-image-plugin
./build_libqjpegxl_dynamic.sh
Install (run as root):
make install
- Open
/usr/share/kservices5/imagethumbnail.desktop
with editor of your choise - Find line that starts with
MimeType=
and addimage/jxl;
to it's end, so line looks likeMimeType=image/cgm; ... ;image/rle;image/avif;image/jxl;
, save file. - Run
update-desktop-database
cd testfiles
gwenview jpegxl-logo.jxl
Expected result: