diff --git a/core/inlineimage.class.inc.php b/core/inlineimage.class.inc.php index 50ed9994f..5a7162e09 100644 --- a/core/inlineimage.class.inc.php +++ b/core/inlineimage.class.inc.php @@ -445,8 +445,8 @@ JS $fScale = min($iMaxImageSize / $iWidth, $iMaxImageSize / $iHeight); - $iNewWidth = $iWidth * $fScale; - $iNewHeight = $iHeight * $fScale; + $iNewWidth = (int) ($iWidth * $fScale); + $iNewHeight = (int) ($iHeight * $fScale); $aDimensions['width'] = $iNewWidth; $aDimensions['height'] = $iNewHeight;