diff --git a/application/utils.inc.php b/application/utils.inc.php index b1e11e8185..5368e61c97 100644 --- a/application/utils.inc.php +++ b/application/utils.inc.php @@ -2226,8 +2226,8 @@ SQL; $fScale = min($iMaxImageWidth / $iWidth, $iMaxImageHeight / $iHeight); - $iNewWidth = $iWidth * $fScale; - $iNewHeight = $iHeight * $fScale; + $iNewWidth = floor($iWidth * $fScale); + $iNewHeight = floor($iHeight * $fScale); $new = imagecreatetruecolor($iNewWidth, $iNewHeight);