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
Do you have an example using AssetMapper to find the logo path please ?
AssetMapper generate a fake link like that in public folder: assets/images/logoSite-nTKj4NV.png
My code in Service:
`
public function generateQrCodeWithLogo(string $fullUrl, string $logoPath)
{
$result = $this->customQrCodeBuilder->build(
data: $fullUrl,
margin: 0,
size: 250,
logoPath: $logoPath
);
$response = new QrCodeResponse($result);
return $response;
}
`
And my Controller: $baseurl = $request->getScheme() . '://' . $request->getHttpHost() . $request->getBasePath(); $qrCode = $this->qrCodeService->generateQrCodeWithLogo('https://www.url.com',$baseurl.'/assets/images/logoSite-nTKj4NV.png'); $qrCodeImage = $qrCode->getContent();
Hello,
Do you have an example using AssetMapper to find the logo path please ?
AssetMapper generate a fake link like that in public folder: assets/images/logoSite-nTKj4NV.png
My code in Service:
`
public function generateQrCodeWithLogo(string $fullUrl, string $logoPath)
{
$result = $this->customQrCodeBuilder->build(
data: $fullUrl,
margin: 0,
size: 250,
logoPath: $logoPath
);
`
And my Controller:
$baseurl = $request->getScheme() . '://' . $request->getHttpHost() . $request->getBasePath(); $qrCode = $this->qrCodeService->generateQrCodeWithLogo('https://www.url.com',$baseurl.'/assets/images/logoSite-nTKj4NV.png'); $qrCodeImage = $qrCode->getContent();
But I have this error:
Could not read logo image data from path "https://127.0.0.1:8000/assets/images/logoSite-nTKj4NV.png": file_get_contents(https://127.0.0.1:8000/assets/images/logoSite-nTKj4NV.png): Failed to open stream: operation failed
If I paste the url in browser (https://127.0.0.1:8000/assets/images/logoSite-nTKj4NV.png) I see the image...
Thank you, sorry for my English and this disturbance !
René
The text was updated successfully, but these errors were encountered: