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

issues with PNG alpha channel #14

Open
fimkap opened this issue Aug 8, 2016 · 1 comment
Open

issues with PNG alpha channel #14

fimkap opened this issue Aug 8, 2016 · 1 comment

Comments

@fimkap
Copy link
Contributor

fimkap commented Aug 8, 2016

termpix has issues displaying transparent PNG, not sure if support for alpha channel was planned
one such example:
This is how the image looks in MacOS Preview (photoshop will display it with a checkerboard pattern)
screen shot 2016-08-07 at 6 28 10 pm
this is how it is displayed on iTerm2 with true color on
screen shot 2016-08-08 at 1 43 11 pm
tried it on Terminal.app, with or without true color - it doesn't help
I'm attaching the original image:
clock-icon-white
Maybe the solution will be to identify the transparent pixels and build a checkerboard pattern with unicode half-block. Meanwhile, I will have to use imagemagick to compose another image with transparent pixels replaced with the pattern and then to display it with termpix.

@fimkap
Copy link
Contributor Author

fimkap commented Nov 17, 2016

I have added alpha blending in my fork. Now it seems to work well. I have created a pull request.
screenshot 2016-11-17 17 02 13

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

1 participant