diff --git a/src/InitialAvatar.php b/src/InitialAvatar.php index b16ed7b..1126640 100644 --- a/src/InitialAvatar.php +++ b/src/InitialAvatar.php @@ -683,6 +683,7 @@ protected function makeSvgAvatar() // Original document $image = new SVG($this->getWidth(), $this->getHeight()); $document = $image->getDocument(); + $document->setAttribute('viewBox', "0 0 {$this->getWidth()} {$this->getHeight()}"); // Background if ($this->getRounded()) {