forked from Public/pics
When generating thumbnails, infer width properly when null is passed.
This commit is contained in:
parent
1def1484cb
commit
ee304dd7b9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user