diff --git a/src/Avatar.php b/src/Avatar.php index c0e3558..3c468cf 100644 --- a/src/Avatar.php +++ b/src/Avatar.php @@ -146,6 +146,13 @@ public function getInitial() return $this->initials; } + public function getImageObject() + { + $this->buildAvatar(); + + return $this->image; + } + protected function getRandomBackground() { if (strlen($this->initials) == 0) {