Page MenuHomeIn-Portal Phabricator

D370.id915.diff
No OneTemporary

File Metadata

Created
Wed, Feb 26, 9:04 AM

D370.id915.diff

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;

Event Timeline