You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
Tinkering with this (awsome) lib, I encountered an issue decoding attached file.
Since I don't know much about the png encoding format I fumbled around the file, and saved it with rgb colors instead of indexed and tadaaaa! this one works:
So I guess there might be cases where the indexed colors don't work for some reason.
Testing some more, I tried to shift all pixels 8 bits on the left (adding 0xFF for opacity) and got the right colors (except for transparent pixels that were black, unsurprisingly).
So, here's the best I can tell you about this for now. I hope it helps. Since indexed colors files are smaller, I guess this might be a bigger deal for optimization purposes, fortunately it's not for what I mean to do at the moment ; since image formats are not my forte, I guess that's all I can do to help for now, but I'll be sure to return with more when I've dug in a bit futher.
Have fun, thanks for the lib :)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
Tinkering with this (awsome) lib, I encountered an issue decoding attached file.

Since I don't know much about the png encoding format I fumbled around the file, and saved it with rgb colors instead of indexed and tadaaaa! this one works:

So I guess there might be cases where the indexed colors don't work for some reason.
Testing some more, I tried to shift all pixels 8 bits on the left (adding
0xFF
for opacity) and got the right colors (except for transparent pixels that were black, unsurprisingly).So, here's the best I can tell you about this for now. I hope it helps. Since indexed colors files are smaller, I guess this might be a bigger deal for optimization purposes, fortunately it's not for what I mean to do at the moment ; since image formats are not my forte, I guess that's all I can do to help for now, but I'll be sure to return with more when I've dug in a bit futher.
Have fun, thanks for the lib :)
The text was updated successfully, but these errors were encountered: