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

Transparent pixels are not transparent anymore when using color blend... #344

Closed
BiggerWoo opened this issue Sep 29, 2019 · 2 comments
Closed

Comments

@BiggerWoo
Copy link

BiggerWoo commented Sep 29, 2019

I compressed 0.png
0
original↑

0
compressed↑

and trying to do some color blend with it,
it works fine with src blend factor is "src_alpha"
0
but when I change it into "src_color"
1
looks like transparent pixels are not transparent anymore.
but wait! it still works fine with this
1
after compressed:
2

so what happend with 0.png?

pngquant -v:
pngquant, 2.12.0 (January 2018), by Kornel Lesinski, Greg Roelofs.
Color profiles are supported via Little CMS. Using libpng 1.6.35.
and with options:
--ext=.png --force --nofs --skip-if-larger --speed=1 --quality=65-80

by the way, if I remove option --nofs, the same problem occured with 1.png after compressed
3
and I done this in cocosCreator, but it's not cocosCreator's problem right? :)

@kornelski
Copy link
Owner

The images look fine outside of cocosCreator, so it is cocosCreator's problem. Please let them know they need to improve handling of PNG8 with tRNS chunk.

@BiggerWoo
Copy link
Author

ok ,thanks~~

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