Interactive interface for browsing global, full-resolution satellite imagery
Fix white-bar bug #1011 #1013
Benjamin Kinga5b504850b3e
diff --git a/web/js/animation/gif-stream.js b/web/js/animation/gif-stream.jsindex 223cd88d0..db94f0f0c 100644--- a/web/js/animation/gif-stream.js+++ b/web/js/animation/gif-stream.js@@ -172,7 +172,7 @@ export default class GifStream {delay = (processedImages === totalImages && options.extraLastFrameDelay) ? delay + (options.extraLastFrameDelay / 10) : delay;// Add an extractx = self.addFrameDetails(ctx, frame);imgData = ctx.getImageData(0, 0, width, height);- rgbComponents = dataToRGB(imgData.data, imgData.height, imgData.height);+ rgbComponents = dataToRGB(imgData.data, imgData.width, imgData.height);nq = new NeuQuant(rgbComponents, rgbComponents.length, 15);paletteRGB = nq.process();paletteArray = new Uint32Array(componentizedPaletteToArray(paletteRGB));