-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jxl - check option combinations & bit depth #17487
Comments
For lossy encoding, yes. JPEG XL is a very different beast to other formats.
This is because starting point is the same - we go straight from our float output buffer, and bpp is basically just a metadata hint to the decoder, but they don't have to respect it (especially if they support float input buffers). The alternative would be to forcefully quantize our float output first, then encode it (but encoding in lossy JPEG XL is done internally in float anyway, so that's why we didn't do it that way; we could if we think explicitly introducing quantization errors is somehow a desired feature...?) For lossess it is a different story obviously. |
I have the Quality set to 95% so lossy indeed. So if I put to 100% the |
Mos def. |
Sorry I don't parse this :) |
Also some settings seems to be incompatible. For example 16bit / Float makes JXL to fail. Maybe there is way to improve the interface to avoid selecting incompatible options? |
https://www.urbandictionary.com/define.php?term=mos+def 😉
That should be working. At least at some point all combos were valid and working. Maybe change the title and let's track any eventual issue here? Likely depends on libjxl version and highway (libhwy) version... |
Done. |
On my system (debian 12, libjxl 0.7), lossy 16b float fails:
And lossless 16b float crashes:
Do you get a better error on your end ? I see nothing in libjxl doc or code that suggests lossless 16b float is not supported; but if we can't get it working I guess we need to disable it. |
I'm only seeing the log (no time to build and run debug, sorry):
Edit: same w/ libjxl 0.11.0... |
Opened libjxl/libjxl#3844 to see what they plan to do with this. |
Came here from the libjxl repo and read through the related issues and PRs about lossless float JXLs. Thought I would bring up this issue too, since while I tested it with 32 bit floats, it could affect 16 bit floats too libjxl/libjxl#3511. As far as I'm aware we've only tested floats using PFM, so while lossless 16 bit is supported, we've never had a 32 bit input requested to be stored as lower. Should be a relatively simple fix, but we'll see what they decide on. |
@kiwixz Looks like there are two options currently:
|
Nice find, it seems clear that lossless float16 is largely untested. I'll write a patch to disable it. |
I just found out that whatever option is used for
bit depth
(8, 10, 12, 16, 32) the file size is the same and according to GIMP it is 32bit flow version. Is that expected ?The text was updated successfully, but these errors were encountered: