Closed nuthinking closed 3 years ago
This gif is causing an error on my app maybe for other reasons. Something I noticed though, is that unlike other gifs, each parsed frame has an application
node:
Not sure if this is helpful.
I have some problem here https://github.com/matt-way/gifuct-js/issues/30
and this is ugly fix for that problem, check https://github.com/jeetiss/react-gifs/blob/main/src/parse-generate.js#L16-L28
Fixing this also fixed the error in my rendering 🤷♂️ Thanks @jeetiss! 🙌
Duplicate of #30
I don't know if this is a problem with the demo code, but if you load the gif https://media0.giphy.com/media/nvKjkfWIl2msw/giphy.gif
into the demo (and you make the canvas background colored), you can see that a frame (the first one) has a white background instead of transparent. In the following video I try a few times to stop at the right frame, at the end I succeed.
https://user-images.githubusercontent.com/163635/115850609-56636880-a426-11eb-9c0d-2d7792dd934b.mp4
In my app which uses the same logic as the demo, when I create a texture for my animation I get indeed the white background on the first frame.
When the gif is loaded in the browser or in Slack, for instance, no frame has white background.