:octocat: +GDImage internal upscaling documentation https://github.com/chillerlan/php-qrcode/discussions/122

This commit is contained in:
smiley
2022-03-29 15:23:21 +02:00
parent 585c328d9e
commit 9a0db7feee
+7
View File
@@ -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;