Skip to content

Commit 9a0db7f

Browse files
committed
:octocat: +GDImage internal upscaling documentation #122
1 parent 585c328 commit 9a0db7f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/QROptionsTrait.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,14 @@ trait QROptionsTrait{
163163
/**
164164
* specify whether to draw the modules as filled circles
165165
*
166+
* a note for GDImage output:
167+
*
168+
* if QROptions::$scale is less or equal than 20, the image will be upscaled internally, then the modules will be drawn
169+
* using imagefilledellipse() and then scaled back to the expected size using IMG_BICUBIC which in turn produces
170+
* unexpected outcomes in combination with transparency - to avoid this, set scale to a value greater than 20.
171+
*
166172
* @see https://github.com/chillerlan/php-qrcode/issues/23
173+
* @see https://github.com/chillerlan/php-qrcode/discussions/122
167174
*/
168175
protected bool $drawCircularModules = false;
169176

0 commit comments

Comments
 (0)