You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had the same problem.
So I made changes to the library.
Download "gifler.bundle.js" and make the following changes will improve the situation.
Gif.prototype.animate=function(selector){varcanvas;canvas=Gif.getCanvasElement(selector);returnthis._animatorPromise.then(function(animator){// add from here ----->if(animator._frames.length===1){varframe=animator._frames[0]varimageData=newImageData(frame.pixels,frame.width,frame.height);canvas.width=frame.width;canvas.height=frame.height;ctx=canvas.getContext('2d');ctx.putImageData(imageData,0,0);return}// <-----returnanimator.animateInCanvas(canvas);});};
Loading a single frame gif causes the page to become completely unresponsive and for it to crash
The text was updated successfully, but these errors were encountered: