This commit is contained in:
smiley
2024-11-27 20:19:56 +01:00
parent 10ed887663
commit b5ff1258a9
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
View File
@@ -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;