1.8.6 - When saving as JPEG XL (JXL), the compression result is incorrect
Posted: Sun Feb 16, 2025 4:03 am
XnView: MP 1.8.6 - 64 bit
OS: Windows 10 Home - 64 bit
When saving as JPEG XL (JXL) file, using compression 8 and 9 will create a file with bigger filesize than compression 7.
This happens when the original file is 9 MB or larger. This bug doesn't happen on smaller filesize.
To reproduce:
1. Find a PNG file that is 9 MB or larger, e.g. https://svs.gsfc.nasa.gov/vis/a010000/a ... 000000.png
2. Open the image on XnView MP.
3. Choose File - Save as
4. Set the "Save as type" to JXL
5. Click Options, choose "Lossless Compression", then set the compression to 7.
6. Click Save
7. Repeat the previous steps, save the PNG file as JXL but set the compression to 8 and 9.
8. Compare the file size
Actual behaviour (bug): The compression 8 and 9 JXL file has bigger filesize than the one using compression 7.
Expected behaviour: Compression 8 and 9 should have smaller filesize than compression 7. When testing using smaller PNG file (filesize = 2MB), the bug doesn't happen. The saved JXL image has expected filesize that matches the compression level.
OS: Windows 10 Home - 64 bit
When saving as JPEG XL (JXL) file, using compression 8 and 9 will create a file with bigger filesize than compression 7.
This happens when the original file is 9 MB or larger. This bug doesn't happen on smaller filesize.
To reproduce:
1. Find a PNG file that is 9 MB or larger, e.g. https://svs.gsfc.nasa.gov/vis/a010000/a ... 000000.png
2. Open the image on XnView MP.
3. Choose File - Save as
4. Set the "Save as type" to JXL
5. Click Options, choose "Lossless Compression", then set the compression to 7.
6. Click Save
7. Repeat the previous steps, save the PNG file as JXL but set the compression to 8 and 9.
8. Compare the file size
Actual behaviour (bug): The compression 8 and 9 JXL file has bigger filesize than the one using compression 7.
Expected behaviour: Compression 8 and 9 should have smaller filesize than compression 7. When testing using smaller PNG file (filesize = 2MB), the bug doesn't happen. The saved JXL image has expected filesize that matches the compression level.