diff --git a/src/Image.php b/src/Image.php index 391051c..d39612e 100644 --- a/src/Image.php +++ b/src/Image.php @@ -182,7 +182,7 @@ public static function resize(Imagick $source, int $boxWidth, int $boxHeight, ar //put image in box $canvas = self::getBackgroundCanvas($clone, $color, $blurBackground, $blurValue, $boxWidth, $boxHeight); - if ($canvas->compositeImage($clone, Imagick::COMPOSITE_DEFAULT, $targetX, $targetY) !== true) { + if ($canvas->compositeImage($clone, Imagick::COMPOSITE_DEFAULT, (int)$targetX, (int)$targetY) !== true) { //cumbersome to test throw new \Exception('Imagick::compositeImage() did not return true');//@codeCoverageIgnore }