Skip to content

Commit c9167d4

Browse files
committed
imagecopyresampled parameter 3/4 must be integer
1 parent 88036a6 commit c9167d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Writer/PngWriter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private function addLogo($sourceImage, string $logoPath, int $logoWidth = null,
105105
$logoX = imagesx($sourceImage) / 2 - $logoWidth / 2;
106106
$logoY = imagesy($sourceImage) / 2 - $logoHeight / 2;
107107

108-
imagecopyresampled($sourceImage, $logoImage, $logoX, $logoY, 0, 0, $logoWidth, $logoHeight, $logoSourceWidth, $logoSourceHeight);
108+
imagecopyresampled($sourceImage, $logoImage, (int)$logoX, (int)$logoY, 0, 0, $logoWidth, $logoHeight, $logoSourceWidth, $logoSourceHeight);
109109

110110
return $sourceImage;
111111
}

0 commit comments

Comments
 (0)