diff --git a/src/Hook/ReplaceInsertTags.php b/src/Hook/ReplaceInsertTags.php index 6014f51..e63de8f 100644 --- a/src/Hook/ReplaceInsertTags.php +++ b/src/Hook/ReplaceInsertTags.php @@ -176,11 +176,11 @@ protected function replaceInline($uuid, $params = array()) $resizeBox = null; if ($width && $height) { - $resizeBox = new Box($width, $height); + $resizeBox = new Box((int) $width, (int) $height); } else if ($width && !$height) { - $resizeBox = new Box($width, $width * $ratio); + $resizeBox = new Box((int) $width, (int) $width * $ratio); } else if (!$width && $height) { - $resizeBox = new Box($height / $ratio, $height); + $resizeBox = new Box((int) $height / $ratio, (int) $height); } $imagineSvg->resize($resizeBox);