jnordberg / gif.js

JavaScript GIF encoding library
http://jnordberg.github.io/gif.js/
MIT License
4.74k stars 668 forks source link

can i use it in wechat #97

Open moxiaobei2 opened 6 years ago

moxiaobei2 commented 6 years ago

in common project ,to make a gif is the job of services,how can i use to make a gif in wechat?

1j01 commented 6 years ago

These two things are generally unrelated. You can look up elsewhere for sharing GIFs to WeChat. There's an answered question here on how to share from iOS, and an unanswered question here for Android.

Unless WeChat has a web-based API, you probably want a different language based library for encoding GIFs, or, to be honest it's not clear you're sure you would need a GIF encoder, vs just sharing existing GIFs.

baiwenhao commented 6 years ago
const gif = new GIF({
    workerScript: URL.createObjectURL(blob),
    workers: 2,
    repeat: -1 // WeChat preview is looping, webpage playing once.
 })