diff --git a/lib/Providers/Qr/EndroidQrCodeWithLogoProvider.php b/lib/Providers/Qr/EndroidQrCodeWithLogoProvider.php index 0a0b2d2..896a59b 100755 --- a/lib/Providers/Qr/EndroidQrCodeWithLogoProvider.php +++ b/lib/Providers/Qr/EndroidQrCodeWithLogoProvider.php @@ -33,11 +33,15 @@ public function getQRCodeImage(string $qrText, int $size): string $logo = null; if ($this->logoPath) { - $logo = Logo::create($this->logoPath); - if ($this->logoSize) { - $logo->setResizeToWidth($this->logoSize[0]); - if (isset($this->logoSize[1])) { - $logo->setResizeToHeight($this->logoSize[1]); + if ($this->endroid6) { + $logo = new Logo($this->logoPath, ...$this->logoSize); + } else { + $logo = Logo::create($this->logoPath); + if ($this->logoSize) { + $logo->setResizeToWidth($this->logoSize[0]); + if (isset($this->logoSize[1])) { + $logo->setResizeToHeight($this->logoSize[1]); + } } } }