You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello t still not working it generate an random charcters like that:- $qrCode = QrCode::gradient(28, 181, 224, 0, 8, 81, 'horizontal') ->format('png')->merge(asset('beta-logos/small-logo.png'), .3, true) ->style('dot', 0.9) ->size(95) ->eyeColor(0, 28, 181, 224, 0, 8, 81) ->eyeColor(1, 28, 181, 224, 0, 8, 81) ->eyeColor(2, 28, 181, 224, 0, 8, 81) ->generate(route('generate_pdf', $invoice->id));
and the path of my photo is this https://beta-plus.jevara.fun/public/beta-logos/small-logo.png
The text was updated successfully, but these errors were encountered:
This happens because you're using format('png') - by default this library outputs an SVG, which is just a string of XML that the browser can render natively.
But a PNG is a binary format and so you'll need an <img /> tag to render it.
But the browser can't render the binary data directly as the encoding could break your HTML, so the safest way to load the binary directly into the page is a base64-encoded string:
Hello t still not working it generate an random charcters like that:-
$qrCode = QrCode::gradient(28, 181, 224, 0, 8, 81, 'horizontal') ->format('png')->merge(asset('beta-logos/small-logo.png'), .3, true) ->style('dot', 0.9) ->size(95) ->eyeColor(0, 28, 181, 224, 0, 8, 81) ->eyeColor(1, 28, 181, 224, 0, 8, 81) ->eyeColor(2, 28, 181, 224, 0, 8, 81) ->generate(route('generate_pdf', $invoice->id));
and the path of my photo is this https://beta-plus.jevara.fun/public/beta-logos/small-logo.png
The text was updated successfully, but these errors were encountered: