Closed SimonSegerblomRex closed 4 months ago
I guess this might be a duplicate of https://github.com/thorfdbg/libjpeg/issues/88#issuecomment-1791584122... The documentation should be updated though, and it's a bit unfortunate that the default behaviour (when not using -h
) is to produce JPEG files incompatible with libjpeg-turbo.
Thank you for reporting. Unlike the 12bit lossy case, I really do not recall in which mode the encoder could possibly need the additional symbols, so I removed them.
Fixed in 1.69, thank you.
Thank you for the quick fix!
Problem Following this advice in the README:
libjpeg produces JPEG files that libjpeg-turbo refuses to decode with the error message
due to this check (discussed here).
Steps to reproduce Encode this image (or any(?) other PGM file) using libjpeg:
Observe that the Huffman table has 256 entries.
Workaround Encode the image using option
-h
:Observe that the Huffman table has 10 entries.
Reasoning One might argue that libjpeg-turbo is at fault not decoding this image since it's technically a valid JPEG file according to the specification, but the 256 entries table doesn't make sense either and seems to be bug in libjpeg. Also following up on your comment here @thorfdbg: