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

Pass alphaInfo from CGImage to CGContext during decompression #749

Conversation

dmytro-kasianchuk-doordash

Partially transparent images sometimes are improperly rendered with decompression on. It's somewhat difficult to reproduce as it requires using partially transparent images and rendering multiple images at the same time.

It looks like Nuke is defaulting to CGAlphaInfo .premultipliedLast which causes an issue. CGImage has Alpha information, passing it fixes the issue.

@dmytro-kasianchuk-doordash dmytro-kasianchuk-doordash force-pushed the dmytro-kasianchuk-doordash/fix-alpha branch from 7a52ff7 to 3e5e908 Compare January 18, 2024 02:01
@dmytro-kasianchuk-doordash
Copy link
Author

Hey @kean, it looks like my PR is effectively undoing ff967f4.

I don't have context on the original fix and I've tried to repro the issue in an isolated project to no success. I'm closing this for now. When I understand the exact repro conditions I'll revisit this

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