pixijs / gif

Plugin to support playback of animated GIF images in PixiJS.
https://pixijs.io/gif/docs/
MIT License
41 stars 5 forks source link

Some images may not be rendered correctly #15

Closed Redgeioz closed 7 months ago

Redgeioz commented 1 year ago

Code to reproduce:

import * as PIXI from 'pixi.js';
import '@pixi/gif';

const app = new PIXI.Application();

document.body.appendChild(app.view);

const image = await PIXI.Assets.load('https://i2.mij.rip/2023/07/17/8f75a5d815120d64dbbcdc44906a975d.gif');
app.stage.addChild(image);

Probably these lines of code caused this result: https://github.com/pixijs/gif/blob/25b3839eda0060adbe20712cdd7ecb3757cdc312/src/AnimatedGIF.ts#L237-L240