Skip to content

Commit

Permalink
Update Image.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OzanKurt authored Apr 26, 2024
1 parent 2bb66e2 commit 3191236
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3191236

Please sign in to comment.