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

Premultiplied alpha not rendered correctly #81

Closed
jonsneyers opened this issue Jun 2, 2021 · 0 comments · Fixed by #83
Closed

Premultiplied alpha not rendered correctly #81

jonsneyers opened this issue Jun 2, 2021 · 0 comments · Fixed by #83
Labels
api Related to the libjxl API bug Something isn't working decoder Related to the libjxl decoder djxl Related to djxl decoder tool

Comments

@jonsneyers
Copy link
Member

In the case of premultiplied (associated) alpha, djxl and other applications ignore that image header field, and treat everything as if it is the usual non-premultiplied (unassociated) alpha like in PNG.

It would make sense to do the same thing here as with the Orientation: by default, the decoder should return pixels in a default way (orientation corrected, unassociated alpha), so applications that want to interpret the alpha_associated info themselves and get the raw data would have to explicitly ask the decoder to not do the normalization.

@jonsneyers jonsneyers added bug Something isn't working djxl Related to djxl decoder tool decoder Related to the libjxl decoder api Related to the libjxl API labels Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to the libjxl API bug Something isn't working decoder Related to the libjxl decoder djxl Related to djxl decoder tool
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant