Skip to content

Conversation

@radarhere
Copy link
Member

Resolves #7386

As per https://learn.microsoft.com/en-us/windows/win32/direct3d10/d3d10-graphics-programming-guide-resources-block-compression#bc5, the BC5 (both signed and unsigned) formats only store red and green values. Currently, Pillow takes this to mean that the blue channel is set to zero.

However, the user in the issue has found that texconv, a Microsoft tool, presumes that for BC5S (signed BC5) the blue channel is always 128.

Copy link

@RunDevelopment RunDevelopment left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM;

Thank you @radarhere!

@hugovk hugovk merged commit 09605ff into python-pillow:main Oct 5, 2023
@radarhere radarhere deleted the bc5s branch October 5, 2023 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DDS BC5_SNORM images are decoded incorrectly

3 participants