mirror of
https://github.com/Intervention/image.git
synced 2025-08-12 00:43:59 +02:00
Fixed lost changes due to incorrectly merging branches.
This commit is contained in:
@@ -364,6 +364,7 @@ class Image
|
||||
}
|
||||
|
||||
} elseif ($ratio && (! is_null($width) or ! is_null($height))) {
|
||||
|
||||
// If only one of width or height has been provided.
|
||||
$width = is_null($width) ? intval($height / $this->height * $this->width) : $width;
|
||||
$height = is_null($height) ? intval($width / $this->width * $this->height) : $height;
|
||||
|
Reference in New Issue
Block a user