From ac4a11f02c5209ac800c8593c5f35b87eae93f50 Mon Sep 17 00:00:00 2001 From: netpro2k <netpro2k@gmail.com> Date: Tue, 3 Jul 2018 16:32:09 -0700 Subject: [PATCH] Fix issue with gif scaling --- src/components/image-plus.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/image-plus.js b/src/components/image-plus.js index 150552bf1..081260547 100644 --- a/src/components/image-plus.js +++ b/src/components/image-plus.js @@ -3,6 +3,9 @@ import GIFWorker from "../workers/gifparsing.worker.js"; class GIFTexture extends THREE.Texture { constructor(frames, delays, disposals) { super(document.createElement("canvas")); + this.image.width = frames[0].width; + this.image.height = frames[0].height; + this._ctx = this.image.getContext("2d"); this.generateMipmaps = false; -- GitLab