qrcode-library
qrcode-library copied to clipboard
logo and label does not show
Hello
$qrCode = (new QrCode('http://example.com'));
$qrCode->useLogo(__DIR__.'/../../web/img/favicon.png')
->setSize(250)
->setMargin(5)
->useEncoding('UTF-8')
->setLogoWidth(60)
->useForegroundColor(26, 179, 148)
->useBackgroundColor(200, 220, 210)
->setLabel('name');
// now we can display the qrcode in many ways
// saving the result to a file:
$qrCode->writeFile(__DIR__.'/../../web/upload/_'. Yii::$app->language.'.png');
echo Html::img(__DIR__.'/../../web/upload/_'. Yii::$app->language.'.png');
so i can see logo, and label https://prnt.sc/kfeb3h
what i did wrong?