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

Support tRNS chunk for alpha, add msys2 dll name on window #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

3b
Copy link

@3b 3b commented Jan 2, 2024

Turning on expansion of palettes (and possibly some other things?) also expands tRNS chunks to alpha, so if we don't handle those correctly we will get memory corruption when we expect 3 bytes per pixel but libpng thinks we want 4.

3b added 3 commits December 22, 2023 15:43
Various other transforms will turn on converting tRNS to alpha, so
make sure we remove alpha if we don't want it if tRNS is present.
If we do want it, make sure it is converted. Also check for that
when deciding if we have an alpha channel.
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.

1 participant