When generating thumbnails, infer width properly when null is passed.

This commit is contained in:
Aaron van Geffen 2018-02-03 20:14:40 +01:00
parent 1def1484cb
commit ee304dd7b9
1 changed files with 1 additions and 1 deletions

View File

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