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

No background mix getLineAsRGB565 when PNG_PIXEL_INDEXED and PNG_PIXEL_GRAYSCALE #6

Open
spectrenoir06 opened this issue Jan 30, 2022 · 4 comments

Comments

@spectrenoir06
Copy link

The lib read correctly the tRNS block and store the alpha pPalette[768]
But doesn't use it in getLineAsRGB565 ( only PNG_PIXEL_TRUECOLOR_ALPHA work )

@spectrenoir06
Copy link
Author

I made a dirty fix for my specific use case
https://github.com/spectrenoir06/PNGdec

@spectrenoir06
Copy link
Author

@bitbank2
Copy link
Owner

working on a fix for 8-bit

@bitbank2
Copy link
Owner

I added a fix for 8-bit palette images. Please give it a try:

8abf6be

@Cvjark Cvjark mentioned this issue Jun 30, 2022
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