1
0
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:
Eric Jones
2013-09-24 09:24:24 -04:00

View File

@@ -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;