- Issue created by @eric.vvf
The AddWatermark operation triggers a deprecated warning in PHP 8.1+ due to implicit float-to-int conversion. The lack of explicit type casting or rounding results in a loss of precision and a deprecated warning. This issue impacts compatibility with modern PHP versions.
PHP Version: 8.3.6
Explicitly cast or round the $margins['x']
and $margins['y']
values to integers before passing them to the imagecopy() function
After
Needs review
2.1
Code