-
-
Notifications
You must be signed in to change notification settings - Fork 698
jxlssave produces XYB encoded JXL images when setting distance=0 #2818
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
Comments
Looked at wrong branch, indeed current master has 'jxl->info.uses_original_profile = JXL_FALSE;' which causes all files to become XYB encoded. I think the correct way to handle this is to change this line to 'jxl->info.uses_original_profile = jxl->lossless;' |
I tried this, but it just makes jxlsave lock up if I should probably sit down and read cjxl again :( |
Didn't lock up for me when I tried lossless conversion using add-more-libjxl-metadata branch where uses_original_profile is TRUE, I only tried with float images though. |
I think this is resolved now. |
When trying to produce lossless JXL images, currently XYB encoded images are generated, and they are not technically lossless. libjxl will generate an error in this case in upcoming builds, see libjxl/libjxl#1270
As I understand basic_info.uses_original_profile should be true if the file is lossless to avoid XYB encoding, and false otherwise for better compression. I can see "jxl->info.uses_original_profile = TRUE;" line in the encoder, so not sure why this issue happens.
Reproducible in 8.12.2 and latest master on windows.
The text was updated successfully, but these errors were encountered: