3.x version of the library replaces white pixels with transparent #396
Unanswered
DarkDaskin
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
I think this might be a quantization change not anything to do with the drawing library. The quantizer changed between versions and matches full alpha better. I suspect your input frames do in fact differ alpha wise and the transparent pixels are FFFFFF00. If you can upload your input images and target dimensions I’ll have a look when I can. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment





Uh oh!
There was an error while loading. Please reload this page.
-
I try to update my code involving drawing animated resized images to the latest version of the library. It required some changes, but I managed to get almost the same image with one big exception: by some reason all white pixels are replaced to transparent. See these images for comparison (although you might not actually see the difference on white background):
Note that the first frame is correct, but all subsequent frames have this issue. This is very strange to me, as I create all frames in a loop and the first frame should not differ.
How can I avoid this problem?
Here is my updated code:
Beta Was this translation helpful? Give feedback.
All reactions