Skip to content

Conversation

@radarhere
Copy link
Member

Resolves #9024

The issue found that with libjpeg, rather than libjpeg-turbo, a test checking for a DHT marker is not found.

From https://en.wikipedia.org/wiki/JPEG, a DHT marker is

Define Huffman Table(s)

and it

Specifies one or more Huffman tables.

From https://github.com/libjpeg-turbo/libjpeg-turbo,

libjpeg-turbo can still outperform libjpeg by a significant amount, by virtue of its highly-optimized Huffman coding routines

It doesn't seem unreasonable that libjpeg-turbo would have different output regarding Huffman tables.

This PR skips checking that marker if libjpeg-turbo is not used.

@radarhere radarhere added the JPEG label Jun 18, 2025
@radarhere radarhere changed the title Only check for DHT marker with libjpeg-turbo Only check DHT marker for libjpeg-turbo Jun 18, 2025
@hugovk hugovk added the Testing label Jun 25, 2025
@hugovk hugovk merged commit 8655b7c into python-pillow:main Jun 25, 2025
76 of 77 checks passed
@radarhere radarhere deleted the dht branch June 25, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_separate_tables failure with Pillow 11.2.1

2 participants