diff --git a/models/Thumbnail.php b/models/Thumbnail.php index 5dca12c5..22987354 100644 --- a/models/Thumbnail.php +++ b/models/Thumbnail.php @@ -109,7 +109,7 @@ class Thumbnail if (!$this->height) $this->height = ceil($this->width / $this->image->ratio()); elseif (!$this->width) - $this->width = ceil($this->height / $this->image->ratio()); + $this->width = ceil($this->height * $this->image->ratio()); // Inferring the height from the original image's ratio? if (!$fit)