-
Notifications
You must be signed in to change notification settings - Fork 262
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
DHT marker: no Huffman table found #3597
Comments
This is the same bug as here: #3604 An empty huffman table seems to mean "use the last". There are blank tables at 0x00002763 and 0x0000320A for refinement in progressive scans. |
With some fantasy, we can say that not defined Huffman table does nothing, but... |
mozjpeg (which apparently means libjpgeg-turbo too) can decode it just fine |
This is related to #2704 Strictly speaking, the JPEG file is not conforming to the JPEG spec (since DHT needs to have "one or more" tables). The current But many JPEG decoders do allow this case, e.g. libjpeg-turbo @veluca93: I made this proposal because #2542 was complaining about this. Back then we decided to take no action yet, since we had only one issue report so we had no idea how common this problem is. Now we also have this report here (#3597) and also #3604. So that's three independent instances of the problem (as far as I know, at least the reports are coming from different people). I would argue that we can now assume that this case happens in enough cases to make it worth addressing the issue. Especially because it can be fixed without causing major interoperability trouble (the worst thing that can happen is that you receive a jxl file that you can view but you cannot reconstruct it to a jpeg file without upgrading your djxl version). |
Will libjxl fix affect jpegli? As my problem is with jpegli, not jxl. |
I've faced the same issue with jpegli. @jonsneyers Do you know when this is expected to be addressed? Thank you |
Looking at the mentioned PR they disagree this is a bug and don't plan addressing this |
Describe the bug
Failing to decode the following image with jpegli: photo_2024-05-21_21-56-01.zip
To Reproduce
Try to decode the mentioned image with jpegli
Expected behavior
Image is decoded
Environment
The text was updated successfully, but these errors were encountered: