We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imagecopy
$startwidth = (int)($this->canvas['width'] - $newwidth) / 2; $startheight = (int)($this->canvas['height'] - $newheight) / 2; [...] imagecopy($newimg, $tmpimg, $startwidth, $startheight, 0, 0, $newwidth, $newheight);
On PHP 8.1+, if $startwidth or $startheight are float, imagecopy generates a Implicit conversion from float to int loses precision warning.
$startwidth
$startheight
Implicit conversion from float to int loses precision
The text was updated successfully, but these errors were encountered:
43f8fc5
Merge pull request #14 from marco-pm/marco-pm-implicit-conversion-fix
5e29848
#13 - `imagecopy` float implicit conversion warning
#13: Updating readme/module version to reflect change
297e61e
No branches or pull requests
On PHP 8.1+, if
$startwidth
or$startheight
are float,imagecopy
generates aImplicit conversion from float to int loses precision
warning.The text was updated successfully, but these errors were encountered: