Browse Source

:octocat: QRImagick: fix square pixel draw size

smiley 2 years ago
parent
commit
29b58f3775
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Output/QRImagick.php

+ 2 - 2
src/Output/QRImagick.php

@@ -223,8 +223,8 @@ class QRImagick extends QROutputAbstract{
 		$this->imagickDraw->rectangle(
 		$this->imagickDraw->rectangle(
 			($x * $this->scale),
 			($x * $this->scale),
 			($y * $this->scale),
 			($y * $this->scale),
-			(($x + 1) * $this->scale),
-			(($y + 1) * $this->scale)
+			((($x + 1) * $this->scale) - 1),
+			((($y + 1) * $this->scale) - 1)
 		);
 		);
 	}
 	}