Open nicolaschapeau opened 11 months ago
I had the same problem and couldn't find a solution! Maybe here we'll have an answer! @mattdesl ?
I haven't attempted to run your code but in my own tests with the Looom exporter, transparency seems to have worked OK.
Here's how I've set it up: https://github.com/mattdesl/looom-tools/blob/main/site/components/gifworker.js
If there is a reproducible test case showing the error I can dig into it a bit more.
Hey!
Great work with the library it's really fast!
I stumbled on a problem recently which is transparent gifs seems to have each frame stack on each other.
I looked at the source code and found out I had to put dispose = 2 to fix that but it seems to not work.
Here is my code, it's a simple worker that take a gif as a data64 url and newDuration. The goal is simple modify the duration of the gif by adding or removing delay between frames.
Everything else seems to work fine, but this is a kind of a huge problem for me, would be glad to know if I did something wrong or if there is a problem with the library!
Regards, Nicolas.
https://github.com/mattdesl/gifenc/assets/32775238/35551d74-af10-463d-a5a2-de3aab5488b5