pixijs / gif

Plugin to support playback of animated GIF images in PixiJS.

Home Page:https://pixijs.io/gif/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: Cannot read properties of undefined (reading 'end')

neridonk opened this issue · comments

Version

    "pixi.js": "^6.2.0",
    "@pixi/gif" :"1.1.3"

I used the old docu


Install the loader for handle GIF images.

import { AnimatedGIFLoader } from '@pixi/gif';
import { Loader } from '@pixi/loaders';
Loader.registerPlugin(AnimatedGIFLoader);

function loadAsset(){
  const app = new Application();
  fetch('image.gif')
      .then(res => res.arrayBuffer())
      .then(AnimatedGIF.fromBuffer)
      .then(image => app.stage.addChild(image));
}

What does this message indicate?

Hm ok no errors on that , but the path .animation is empty

              const loader = new PIXI.Loader();
                loader.add('gifi', assetPath);
                loader.load((loader, resources) => {
                    console.log(resources.gifi,  resources.gifi.animation);
                });

nvm was no animated gif sry