qrcode-library icon indicating copy to clipboard operation
qrcode-library copied to clipboard

logo and label does not show

Open DesRodman opened this issue 6 years ago • 0 comments

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?

DesRodman avatar Aug 06 '18 17:08 DesRodman