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

ktech: Alpha channel issue #6

Open
FlorianFieber opened this issue Sep 9, 2016 · 1 comment
Open

ktech: Alpha channel issue #6

FlorianFieber opened this issue Sep 9, 2016 · 1 comment

Comments

@FlorianFieber
Copy link

There seems to be an issue with images containing low alpha channel values.

Running:
$ ktech transparency_test.{png,tex} && ktech transparency_test.tex{,.png}
on this image:
transparency_test
results in this image:
transparency_test tex

@victorpopkov
Copy link

Kinda sad. 5 years and no answers. For those, who stumbles upon this issue:

It seems that this is due to alpha premultiplication, which is enabled by default. There is an option --no-premultiply that doesn't really do anything, as it's disabled (see #20) for some reason. But enabling it gives you control over this behaviour and can be used as a quick fix of this issue:

$ ktech --no-premultiply transparency_test.{png,tex} && ktech transparency_test.tex{,.png}

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