:octocat: fixes/implements #223

This commit is contained in:
smiley
2023-10-25 21:30:48 +02:00
parent 5e8d10df82
commit ab358f2f38
30 changed files with 569 additions and 114 deletions
+3 -3
View File
@@ -13,7 +13,7 @@
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Common\EccLevel;
use chillerlan\QRCode\Data\QRMatrix;
use chillerlan\QRCode\Output\{QRGdImage, QRCodeOutputException};
use chillerlan\QRCode\Output\{QRGdImagePNG, QRCodeOutputException};
require_once __DIR__.'/../vendor/autoload.php';
@@ -21,7 +21,7 @@ require_once __DIR__.'/../vendor/autoload.php';
* Class definition
*/
class QRImageWithLogo extends QRGdImage{
class QRImageWithLogo extends QRGdImagePNG{
/**
* @param string|null $file
@@ -64,7 +64,7 @@ class QRImageWithLogo extends QRGdImage{
$this->saveToFile($imageData, $file);
if($this->options->outputBase64){
$imageData = $this->toBase64DataURI($imageData, 'image/'.$this->options->outputType);
$imageData = $this->toBase64DataURI($imageData);
}
return $imageData;