core-video-to-gif

A JavaScript Library To Convert Video To Gif

Install Now

Demo

请在Chrome/Safari 测试,被劫持的视频(UC/Baidu)将无法支持截图

制作中...

How to use

Browser

<script src="./dist/core-video-to-gif.min.js"></script>

Npm

$ npm install core-video-to-gif --save

In your JS File

const v2g = new CoreVideoToGif({
    // specify the video element
    el: document.querySelector('video')
})
v2g.shot({
    // options,
    start: 6, // ms
    end: 10
}, (result) => {
    // ...
    image.src = result
})

view more details



❤️ with Jack Pu