3 ms·
Er ... "I can now grab the user's webcam stream, generate a GIF, and let the user download or share it on an image hosting platform. And all of this is done in
by masswerk 13y ago
Er ... "I can now grab the user's webcam stream, generate a GIF, and let the user download or share it on an image hosting platform. And all of this is done in the front-end using a lightweight interface!" ... that's 3 lines (sorry: 4) of native JS, we need node-modules for this?
- secoif 13y agoyou can generate a gif with native js?
- fraserxv 13y agoYeap. Check out the code here. https://github.com/fraserxu/gifme https://github.com/fraserxu/gifme There's an awesome library to do this. It's basically capture serval frames and use a algorithem to generate it.
- masswerk 13y agoNot exactly a gif-image, because of license restrictions (which may also be a problem with any OSS library), but image/png, image/jpeg and (Chrome) image/webp and any animations built of these. (This is a political issue and not a technical one.) To have gif, you would have to implement the algorithm by your own and pay fees or ...