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
Hi, occasionally I'm getting this error, i think it had to do with GifUtil
GifError: Invalid block size
at new GifReader (/var/www/gifier/node_modules/omggif/omggif.js:489:41)
at GifCodec.decodeGif (/var/www/gifier/node_modules/gifwrap/src/gifcodec.js:55:26)
at /var/www/gifier/node_modules/gifwrap/src/gifutil.js:222:24
asyncfunctionmergeThumbnail(text,gifImage,outputImage,playIcon){returnnewPromise(async(resolve,reject)=>{constfont=awaitJimp.loadFont(Jimp.FONT_SANS_32_BLACK);constfont2=awaitJimp.loadFont(Jimp.FONT_SANS_32_WHITE);constres=sizeOf(gifImage);constwidth=res.width,height=res.height;letframes=[];letgif_frames=[];try{gif_frames=awaitgetGifFrames(gifImage);}catch(e13){reject(false);}constsec_img=(awaitJimp.read(playIcon)).resize(48,48);letw=(width/2)-(sec_img.bitmap.width/2);leth=(height/2)-(sec_img.bitmap.height/2);letx=0;lety=height-56;letmaxWidth=320;gif_frames.forEach((frame)=>{letimage=newJimp(frame.bitmap.width,frame.bitmap.height);image.bitmap=frame.bitmap;image.blit(sec_img,136,156,0,0,48,48);// do stuff here (shortned)GifUtil.quantizeDekker(image);frames.push(newGifFrame(newBitmapImage(image.bitmap)));});GifUtil.write(outputImage,frames);resolve(outputImage);});}
The text was updated successfully, but these errors were encountered:
Hi, occasionally I'm getting this error, i think it had to do with
GifUtil
here is my code blocks
getGifFrames
mergeThumbnail
The text was updated successfully, but these errors were encountered: