We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logoPunchoutBackground(true) has no effect on SVG files.
logoPunchoutBackground(true)
<?php use Endroid\QrCode\Builder\Builder; use Endroid\QrCode\Encoding\Encoding; use Endroid\QrCode\Writer\PngWriter; use Endroid\QrCode\Writer\SvgWriter; foreach (['png', 'svg'] as $extension) { $generalBuilder = Builder::create(); if ($extension === 'png') { $generalBuilder->writer(new PngWriter()); } else { $generalBuilder->writer(new SvgWriter()); } $generalBuilder->writerOptions([]) ->data('https://github.com/Bacon/BaconQrCode') ->encoding(new Encoding('UTF-8')) ->size(320) ->margin(10) ->logoPath('logo.png') ->logoResizeToWidth(100) ->logoPunchoutBackground(true); } $generalBuilder->build()->saveToFile('qrcode.' . $extension); }
Tested with 5.1.0
The text was updated successfully, but these errors were encountered:
Confirmed with v6.0.0
Sorry, something went wrong.
endroid
No branches or pull requests
logoPunchoutBackground(true)
has no effect on SVG files.Tested with 5.1.0
The text was updated successfully, but these errors were encountered: