diff --git a/src/Output/QRGdImage.php b/src/Output/QRGdImage.php index 3125672a0..c695daf94 100644 --- a/src/Output/QRGdImage.php +++ b/src/Output/QRGdImage.php @@ -163,6 +163,8 @@ public function dump(string|null $file = null):string|GdImage{ // scale down to the expected size $this->image = imagescale($this->image, ($this->length / 10), ($this->length / 10)); $this->upscaled = false; + // Reset scaled and length values after rescaling image to prevent issues with subclasses that use the output from dump() + $this->setMatrixDimensions(); } // set transparency after scaling, otherwise it would be undone