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++) {