Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Jul 17, 2024
2 parents 1a8e1ff + c954db6 commit f65d9d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Output/QRGdImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f65d9d2

Please sign in to comment.