spite / ccapture.js

A library to capture canvas-based animations at a fixed framerate
MIT License
3.55k stars 406 forks source link

Doesnt capture GIF #99

Open peeter2 opened 4 years ago

peeter2 commented 4 years ago

Hello,

Your live example is buggy. The GIF capture is not working. Webm format works fine but not GIF. What's wrong with this?

spite commented 4 years ago

What browser are you trying it on? It should work on any browser that supports web workers. May be you didn't give it enough time to process the gif (it can take a long time).

peeter2 commented 4 years ago

I tried it on both Chrome as well as Firefox and still GIFs don't download. Even if I set frame rate to 10fps and capture just one second, still nothing happens. Works fine with video or JPG format though. You can try and see if it works for you? https://www.clicktorelease.com/code/conway3d_ccapture/

////////// EDIT: Just tried again and seems like it worked now. I just had to wait for a few minutes to get the one second GIF. I guess I'm just gonna stick with the video format.

Thanks.

spencerthayer commented 2 months ago

Yeah @peeter2 the GIF is broken.