Skip to content
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

[imageio] Fix reading of palette-based PNGs with transparency #18031

Merged
merged 2 commits into from
Dec 23, 2024

Conversation

victoryforce
Copy link
Collaborator

Fixes #17991.

We need to call png_set_strip_alpha for images with transparency to ensure that decoding does not produce 4 channels instead of the expected 3. The original code restricted the call conditions of this function too much, and it was not called for indexed color images with the tRNS chunk.

@victoryforce victoryforce added this to the 5.0.1 milestone Dec 19, 2024
@TurboGit TurboGit merged commit 8e95981 into darktable-org:master Dec 23, 2024
6 checks passed
@TurboGit
Copy link
Member

Merged in master and 5.0.x branch.

@TurboGit TurboGit self-requested a review December 23, 2024 17:53
@victoryforce victoryforce deleted the fix-17991 branch December 23, 2024 18:31
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.

Indexed png does not load properly
2 participants