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

How do I encode my ImageData 1-to-1, keeping #12345600 color (RGBA) as it is, not dropping to #00000000? #73

Open
kotoOo opened this issue Nov 13, 2021 · 1 comment

Comments

@kotoOo
Copy link

kotoOo commented Nov 13, 2021

The manual states that UPNG.encodeLL ain't running any optimizations, but looks like it still performs alpha premultification, doesn't it?

@photopea
Copy link
Owner

It is a bad practice to store useful RGB data into pixels, which have a transparency 0.

But UPNG.encodeLL() should keep the original data, without modifying pixels. Are you sure the bug is not in your code?

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

No branches or pull requests

2 participants