From a0866f4d5356f16907da928b4dad159b957fc6e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksander=20Dzier=C5=BCanowski?= Date: Sat, 5 Aug 2023 01:02:37 +0200 Subject: [PATCH] Fixes #323 --- lib/bmp.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bmp.js b/lib/bmp.js index 20dda28bc..bfbc6fc87 100644 --- a/lib/bmp.js +++ b/lib/bmp.js @@ -633,6 +633,7 @@ class BmpDecoder { }); } scanImage(padding = 0, width = this.width, processPixel) { + this.pos = this.offset; for (let y = this.height - 1; y >= 0; y--) { const line = this.bottomUp ? y : this.height - 1 - y; for (let x = 0; x < width; x++) {