Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 8, 2023
1 parent ec0ee63 commit 395fe9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Drivers/Gd/GdDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ public function base64(string $imageFormat = 'jpeg', bool $prefixWithFormat = tr

$this->format($imageFormat);

$image_data = ob_get_contents();
$imageData = ob_get_contents();
ob_end_clean();

if ($prefixWithFormat) {
return 'data:image/'.$imageFormat.';base64,'.base64_encode($image_data);
return 'data:image/'.$imageFormat.';base64,'.base64_encode($imageData);
}

return base64_encode($image_data);
return base64_encode($imageData);
}

public function driverName(): string
Expand Down

0 comments on commit 395fe9f

Please sign in to comment.