Skip to content

Commit

Permalink
closes #317 (#318)
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <b@bnomei.com>
  • Loading branch information
bnomei authored Mar 20, 2023
1 parent 755615d commit 226d507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/claviska/SimpleImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ public function resize(int $width = null, int $height = null): static

// Resize to height
if (! $width && $height) {
$width = $height * $this->getAspectRatio();
$width = (int) round($height * $this->getAspectRatio());
}

// If the dimensions are the same, there's no need to resize
Expand Down

0 comments on commit 226d507

Please sign in to comment.