mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-31 04:28:03 +00:00
🚿
This commit is contained in:
@@ -66,7 +66,7 @@ class SVGConvert extends QRMarkupSVG{
|
||||
|
||||
$imageData = $im->getImageBlob();
|
||||
|
||||
$im->destroy();
|
||||
$im->clear();
|
||||
$this->saveToFile($imageData, $file);
|
||||
|
||||
if($base64){
|
||||
@@ -77,7 +77,7 @@ class SVGConvert extends QRMarkupSVG{
|
||||
throw new QRCodeOutputException('unable to detect mime type');
|
||||
}
|
||||
|
||||
$imageData = $this->toBase64DataURI($imageData);
|
||||
$imageData = $this->toBase64DataURI($imageData, $mime);
|
||||
}
|
||||
|
||||
return $imageData;
|
||||
|
||||
+1
-1
@@ -107,7 +107,7 @@ final class Number extends QRDataModeAbstract{
|
||||
}
|
||||
|
||||
$result .= intdiv($threeDigitsBits, 100);
|
||||
$result .= (($threeDigitsBits / 10) % 10);
|
||||
$result .= (intdiv($threeDigitsBits, 10) % 10);
|
||||
$result .= ($threeDigitsBits % 10);
|
||||
|
||||
$length -= 3;
|
||||
|
||||
Reference in New Issue
Block a user