Skip to content

Commit

Permalink
🚿
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Nov 27, 2024
1 parent 10ed887 commit b5ff125
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/imagickConvertSVGtoPNG.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function dump(string|null $file = null):string{

$imageData = $im->getImageBlob();

$im->destroy();
$im->clear();
$this->saveToFile($imageData, $file);

if($base64){
Expand All @@ -77,7 +77,7 @@ public function dump(string|null $file = null):string{
throw new QRCodeOutputException('unable to detect mime type');
}

$imageData = $this->toBase64DataURI($imageData);
$imageData = $this->toBase64DataURI($imageData, $mime);
}

return $imageData;
Expand Down
2 changes: 1 addition & 1 deletion src/Data/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public static function decodeSegment(BitBuffer $bitBuffer, int $versionNumber):s
}

$result .= intdiv($threeDigitsBits, 100);
$result .= (($threeDigitsBits / 10) % 10);
$result .= (intdiv($threeDigitsBits, 10) % 10);
$result .= ($threeDigitsBits % 10);

$length -= 3;
Expand Down

0 comments on commit b5ff125

Please sign in to comment.