[resize] specifically be int, not float
This commit is contained in:
parent
013ae41f89
commit
985d34aedd
1 changed files with 2 additions and 2 deletions
|
@ -288,8 +288,8 @@ class ResizeImage extends Extension
|
|||
$factor = min($width / $image_obj->width, $height / $image_obj->height);
|
||||
}
|
||||
|
||||
$new_width = round($image_obj->width * $factor);
|
||||
$new_height = round($image_obj->height * $factor);
|
||||
$new_width = (int)round($image_obj->width * $factor);
|
||||
$new_height = (int)round($image_obj->height * $factor);
|
||||
return [$new_height, $new_width];
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue