mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-07 04:17:53 +00:00
:octocat: rename QROptionsTrait::$imageBase64 to $outputBase64, deprecate old name and redirect calls
This commit is contained in:
@@ -54,7 +54,7 @@ class QRImagickWithLogo extends QRImagick{
|
||||
$this->imagick->destroy();
|
||||
$this->saveToFile($imageData, $file);
|
||||
|
||||
if($this->options->imageBase64){
|
||||
if($this->options->outputBase64){
|
||||
$imageData = $this->toBase64DataURI($imageData, (new finfo(FILEINFO_MIME_TYPE))->buffer($imageData));
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ $options->version = 5;
|
||||
$options->outputType = QROutputInterface::CUSTOM;
|
||||
$options->outputInterface = QRImagickWithLogo::class; // use the custom output class
|
||||
$options->eccLevel = EccLevel::H;
|
||||
$options->imageBase64 = false;
|
||||
$options->outputBase64 = false;
|
||||
$options->addLogoSpace = true;
|
||||
$options->logoSpaceWidth = 15;
|
||||
$options->logoSpaceHeight = 15;
|
||||
|
||||
Reference in New Issue
Block a user