🛀 data mode rework

This commit is contained in:
codemasher
2020-11-21 02:43:14 +01:00
parent 4968063fb3
commit 9f5d0bc060
26 changed files with 853 additions and 789 deletions
+4 -1
View File
@@ -36,9 +36,12 @@ $options->logoHeight = 13;
$options->scale = 5;
$options->imageTransparent = false;
$qrcode = new QRCode($options);
$qrcode->addByteSegment($data);
header('Content-type: image/png');
$qrOutputInterface = new QRImageWithLogo($options, (new QRCode($options))->getMatrix($data));
$qrOutputInterface = new QRImageWithLogo($options, $qrcode->getMatrix());
// dump the output, with an additional logo
echo $qrOutputInterface->dump(null, __DIR__.'/octocat.png');