Updated QR code styling

This commit is contained in:
Julian Prieber 2023-12-05 22:00:48 +01:00
parent 335cf79d93
commit 7b9a3ae956
1 changed files with 2 additions and 2 deletions

View File

@ -684,12 +684,12 @@ $usrhandl = Auth::user()->littlelink_name;
$redirectURL = url('').'/'.'u/'.Auth::user()->id;
if (extension_loaded('imagick')) {
$imgSrc = QrCode::format('png')->size(1000)->generate($redirectURL);
$imgSrc = QrCode::format('png')->gradient(224, 36, 252, 35, 199, 225,'diagonal')->eye('circle')->style('round')->size(1000)->generate($redirectURL);
$imgSrc = base64_encode($imgSrc);
$imgSrc = 'data:image/png;base64,' . $imgSrc;
$imgType = 'png';
} else {
$imgSrc = QrCode::size(1000)->generate($redirectURL);
$imgSrc = QrCode::gradient(224, 36, 252, 35, 199, 225,'diagonal')->eye('circle')->style('round')->size(1000)->generate($redirectURL);
$imgSrc = base64_encode($imgSrc);
$imgSrc = 'data:image/svg+xml;base64,' . $imgSrc;
$imgType = 'svg';