Skip to content

Commit

Permalink
PHP 8.1: explicitly convert dimensions to int
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates committed Aug 10, 2023
1 parent 9e4dcee commit c9f84a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function createImage($sourcePath, $destPath, $type, $sizeConstraint, $mim
$offsetX = $this->_getCropOffsetX($newX, $sizeConstraint);
}

$imagick->thumbnailImage($newX, $newY);
$imagick->thumbnailImage(round($newX), round($newY));
$imagick->cropImage($sizeConstraint, $sizeConstraint, $offsetX, $offsetY);
$imagick->setImagePage($sizeConstraint, $sizeConstraint, 0, 0);
}
Expand Down

0 comments on commit c9f84a8

Please sign in to comment.