Index: core/units/helpers/image_helper.php =================================================================== --- core/units/helpers/image_helper.php +++ core/units/helpers/image_helper.php @@ -490,8 +490,8 @@ $ratio = min($width_ratio, $height_ratio); } - $width = ceil($orig_width * $ratio); - $height = ceil($orig_height * $ratio); + $width = (int)round($orig_width * $ratio); + $height = (int)round($orig_height * $ratio); } else { $width = $orig_width;