Closed dbermond closed 3 years ago
I believe this a bug in libjxl.
Try to save the screenshot as PNG and then to convert the PNG to JXL using cjxl.
Thank you for the reply.
Yes, saving a png file that was taken with qApp->primaryScreen()->grabWindow(0).copy()
and then converting it to jxl through the cjxl
command gives the same error of the crash in Qt/C++. So, looks like a libjxl bug.
After installing the plugin, this Qt/C++ code crashes:
Console output:
But this code works fine and correctly writes a jxl image:
Tested with both Qt5 and Qt6, with the same result.
System information: OS: Arch Linux x86_64 Qt5: 5.15.2+kde+r211 Qt6: 6.1.2 libjxl: 0.5 Compiler: gcc 11.1.0