From 31912368782121be8eb2b9f6927a6367490222ea Mon Sep 17 00:00:00 2001 From: Ozan Kurt Date: Sat, 27 Apr 2024 00:14:09 +0200 Subject: [PATCH] Update Image.php --- src/Image.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Image.php b/src/Image.php index 1e7f6161..c9589d39 100644 --- a/src/Image.php +++ b/src/Image.php @@ -173,9 +173,15 @@ public function getSize(): Size return $this->imageDriver->getSize(); } - public function fit(Fit $fit, ?int $desiredWidth = null, ?int $desiredHeight = null): static - { - $this->imageDriver->fit($fit, $desiredWidth, $desiredHeight); + public function fit( + Fit $fit, + ?int $desiredWidth = null, + ?int $desiredHeight = null, + bool $relative = false, + string $backgroundColor = '#ffffff' + ): static + { + $this->imageDriver->fit($fit, $desiredWidth, $desiredHeight, $relative, $backgroundColor); return $this; }