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

Fix decoding Alpha Initialization #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ConorGriffin37
Copy link

I tried using this library and it wasn't working for me. I tracked the issue down to the alpha initialization in the decoder.

When encoding we initialize prevA to 255. So if the first pixel has an alpha of 255, then we will add a QOI_OP_RGB op as the first op.

When decoding this, we will get a QOI_OP_RGB for the first pixel and leave A at it's current value of -1. So a will be -1 when it should be 255 in this case.

I am not sure if there is some context of how this was being used that makes this work that I am possibly missing.

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

Successfully merging this pull request may close these issues.

2 participants