-
Notifications
You must be signed in to change notification settings - Fork 668
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
Delay in rendered GIF #116
Comments
GIF viewers have a minimum delay below which it will default to a longer delay. |
@1j01 I tried it, doesn't work. For some reason, it makes it slower. I think it's the library? |
I don't know. If you play around with the delay, can you find a point at which decreasing the delay stops making it faster? |
@HarowitzBlack May I ask you what short of canvas animation is it? A Lottie Animation? I had a similar issue while doing Lottie to GIF. Solved it by calculating the delay ms value based on the animation frame rate. Let me know. |
@ahmedmaazin Hi yes, it was a Lottie animation. I was trying to convert Lottie to GIF. Would you be kind enough to tell me how you did it? Thank you! |
@HarowitzBlack Sure let me try to explain below...: // Calculate the ms delay by the Lottie instance frame rate. // Set the delay here. Let me know how it goes. Also do share some sample snippet of your implementation. |
Thank you so much, It's working!! I'm using fabricjs to load the little into the fabricjs canvas and passing each frame of it into gif.js to render it. Here's a snippet of it `
` |
Nice. Glad to hear that it works. 👍 |
I'm using gifjs to convert a canvas animation into a GIF and so far it has worked alright. But the problem I'm facing is that the resulting output has some sort of delay in between each frame, so the animation is pretty slow. I've tried setting the delay value in addFrame to the lowest value possible but for some reason, it just doesn't seem to work.
Here's the example, as you can see it's very slow.
Is there a way to remove this delay? Am I doing something wrong? I'd appreciate any help, thanks!
The text was updated successfully, but these errors were encountered: