Skip to content

Commit

Permalink
:octocat: +GDImage internal upscaling documentation #122
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Mar 29, 2022
1 parent 585c328 commit 9a0db7f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/QROptionsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,14 @@ trait QROptionsTrait{
/**
* specify whether to draw the modules as filled circles
*
* a note for GDImage output:
*
* if QROptions::$scale is less or equal than 20, the image will be upscaled internally, then the modules will be drawn
* using imagefilledellipse() and then scaled back to the expected size using IMG_BICUBIC which in turn produces
* unexpected outcomes in combination with transparency - to avoid this, set scale to a value greater than 20.
*
* @see https://github.com/chillerlan/php-qrcode/issues/23
* @see https://github.com/chillerlan/php-qrcode/discussions/122
*/
protected bool $drawCircularModules = false;

Expand Down

0 comments on commit 9a0db7f

Please sign in to comment.