Gif First Frame
Use wasm
to capture the first frame of a Gif image.
Install
# yarn
yarn add gifff
# npm
npm install gifff
Usage
import gifff from 'gifff'
/**
* Get Gif First Frame
*
* @param {string|File} file - GifHttpUrl or GifLocalFile
* @param {undefined|Object} options
* @param {undefined|string} options.wasm WASM File Url
* @returns {Promise
} PNG base64
*/
const base64 = await gifff(Gif, {
wasm: WASM_PATH
})