Input
https://cdn.discordapp.com/attachments/875525041989750815/898710282631794708/1.gif
Output
https://cdn.discordapp.com/attachments/875525041989750815/898710297655779348/2.gif
const GifCopied = new GifFrame( new BitmapImage(jimpCopied.bitmap, { disposalMethod: frame.disposalMethod, delayCentisecs: frame.delayCentisecs, }) ); const codec = new GifCodec(); await codec.encodeGif(frames, { loops: 0 }).then((encodedGIF) => { gif = encodedGIF.buffer; }); return gif;
Input
https://cdn.discordapp.com/attachments/875525041989750815/898710282631794708/1.gif
Output
https://cdn.discordapp.com/attachments/875525041989750815/898710297655779348/2.gif
const GifCopied = new GifFrame( new BitmapImage(jimpCopied.bitmap, { disposalMethod: frame.disposalMethod, delayCentisecs: frame.delayCentisecs, }) ); const codec = new GifCodec(); await codec.encodeGif(frames, { loops: 0 }).then((encodedGIF) => { gif = encodedGIF.buffer; }); return gif;