mirror of
https://github.com/Imagick/imagick.git
synced 2026-06-19 07:35:36 +00:00
Explicit casts to make php 8.1 happy.
This commit is contained in:
@@ -33,7 +33,7 @@ function screenEmbed() {
|
||||
$overlay->modulateImage(97, 100, 0);
|
||||
$overlay->distortImage(\Imagick::DISTORTION_PERSPECTIVE, $points, true);
|
||||
|
||||
$imagick->compositeImage($overlay, \Imagick::COMPOSITE_OVER, 364.5 - $offset, 23.5);
|
||||
$imagick->compositeImage($overlay, \Imagick::COMPOSITE_OVER, (int)(364.5 - $offset), 23);
|
||||
|
||||
$bytes = $imagick->getImageBlob();
|
||||
if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
|
||||
|
||||
Reference in New Issue
Block a user