gif-jam
v1.1.1
Published
Renders gif animation into static image as data URL
Downloads
1
Readme
GIF jam
A simple package for converting animated gif into static image represented by data URL.
Instalation
npm install gif-jam
Example
import getStaticImageDataUrl from 'gif-jam'
...
var myGifUrl = 'http://www.example.com/my.gif';
getStaticImageDataUrl(myGifUrl)
.then((staticImageUrl) => {
document.getElementsByTagName('img')[0].src = staticImageUrl;
})