mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 20:04:16 -04:00
JXL improvements
Highlights of the patch: - Supersede MR !249 - Added FP16 and FP32 images support thus preserving HDR values (read / write, required libjxl 0.9+). - Added Gray8 and Gray16 support (read / write). - Indexed images are saved as Gray8 when palette is gray scale. - Binary images are saved as Gray8 (does JXL natively support binary images?). - Simplified writing process by partially removing the use of additional buffers. - Added XMP metadata support by decoding/encoding Boxes. - Changed maximum image size in pixels in accordance with JXL feature level 5 (still limited to 256 megapixels). Compatibility: - Older versions of this plugin load FP images correctly as UINT16 (obviously losing HDR info). - HDR images saved with this patch are also loaded correctly by Gimp and Photoshop. - Grayscale images saved with this patch are also loaded correctly by Gimp and Photoshop. Compilation modifiers for cmake file: - `JXL_HDR_PRESERVATION_DISABLED`: disable the FP support (behaves like previous versions). - `JXL_DECODE_BOXES_DISABLED`: disable metadata reading (behaves like previous versions).
This commit is contained in:
BIN
autotests/read/jxl/testcard_gray16.jxl
Normal file
BIN
autotests/read/jxl/testcard_gray16.jxl
Normal file
Binary file not shown.
BIN
autotests/read/jxl/testcard_gray16.png
Normal file
BIN
autotests/read/jxl/testcard_gray16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
autotests/read/jxl/testcard_gray8.jxl
Normal file
BIN
autotests/read/jxl/testcard_gray8.jxl
Normal file
Binary file not shown.
BIN
autotests/read/jxl/testcard_gray8.png
Normal file
BIN
autotests/read/jxl/testcard_gray8.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.4 KiB |
BIN
autotests/read/jxl/testcard_rgb_fp16.jxl
Normal file
BIN
autotests/read/jxl/testcard_rgb_fp16.jxl
Normal file
Binary file not shown.
BIN
autotests/read/jxl/testcard_rgb_fp16.png
Normal file
BIN
autotests/read/jxl/testcard_rgb_fp16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
autotests/read/jxl/testcard_rgb_fp32.jxl
Normal file
BIN
autotests/read/jxl/testcard_rgb_fp32.jxl
Normal file
Binary file not shown.
BIN
autotests/read/jxl/testcard_rgb_fp32.png
Normal file
BIN
autotests/read/jxl/testcard_rgb_fp32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
autotests/read/jxl/testcard_rgba_fp16.jxl
Normal file
BIN
autotests/read/jxl/testcard_rgba_fp16.jxl
Normal file
Binary file not shown.
21
autotests/read/jxl/testcard_rgba_fp16.jxl.json
Normal file
21
autotests/read/jxl/testcard_rgba_fp16.jxl.json
Normal file
@ -0,0 +1,21 @@
|
||||
[
|
||||
{
|
||||
"minQtVersion" : "6.2.11",
|
||||
"maxQtVersion" : "6.2.99",
|
||||
"fileName" : "testcard_rgba_fp16.png"
|
||||
},
|
||||
{
|
||||
"minQtVersion" : "6.5.5",
|
||||
"maxQtVersion" : "6.5.99",
|
||||
"fileName" : "testcard_rgba_fp16.png"
|
||||
},
|
||||
{
|
||||
"minQtVersion" : "6.6.2",
|
||||
"fileName" : "testcard_rgba_fp16.png"
|
||||
},
|
||||
{
|
||||
"unsupportedFormat" : true,
|
||||
"comment" : "Skipped due to QTBUG-120614.",
|
||||
"seeAlso" : "https://bugreports.qt.io/browse/QTBUG-120614"
|
||||
}
|
||||
]
|
BIN
autotests/read/jxl/testcard_rgba_fp16.png
Normal file
BIN
autotests/read/jxl/testcard_rgba_fp16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
autotests/read/jxl/testcard_rgba_fp32.jxl
Normal file
BIN
autotests/read/jxl/testcard_rgba_fp32.jxl
Normal file
Binary file not shown.
21
autotests/read/jxl/testcard_rgba_fp32.jxl.json
Normal file
21
autotests/read/jxl/testcard_rgba_fp32.jxl.json
Normal file
@ -0,0 +1,21 @@
|
||||
[
|
||||
{
|
||||
"minQtVersion" : "6.2.11",
|
||||
"maxQtVersion" : "6.2.99",
|
||||
"fileName" : "testcard_rgba_fp32.png"
|
||||
},
|
||||
{
|
||||
"minQtVersion" : "6.5.5",
|
||||
"maxQtVersion" : "6.5.99",
|
||||
"fileName" : "testcard_rgba_fp32.png"
|
||||
},
|
||||
{
|
||||
"minQtVersion" : "6.6.2",
|
||||
"fileName" : "testcard_rgba_fp32.png"
|
||||
},
|
||||
{
|
||||
"unsupportedFormat" : true,
|
||||
"comment" : "Skipped due to QTBUG-120614.",
|
||||
"seeAlso" : "https://bugreports.qt.io/browse/QTBUG-120614"
|
||||
}
|
||||
]
|
BIN
autotests/read/jxl/testcard_rgba_fp32.png
Normal file
BIN
autotests/read/jxl/testcard_rgba_fp32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Reference in New Issue
Block a user