You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It may happen that components/SimpleImage::resize gets called with float arguments for width or height.
The following image... methods called in the resize() method may throw the error:
yii\base\ErrorException: Implicit conversion from float nnnn.nn to int loses precision in /var/www/html/vendor/floor12/yii2-module-files/src/components/SimpleImage.php:99 (or elsewhere).
It may happen that components/SimpleImage::resize gets called with float arguments for width or height.
The following image... methods called in the resize() method may throw the error:
yii\base\ErrorException: Implicit conversion from float nnnn.nn to int loses precision in /var/www/html/vendor/floor12/yii2-module-files/src/components/SimpleImage.php:99 (or elsewhere).
Simple fix maybe:
function resize($width, $height)
{
$width = round($width, 0);
$height = round($height, 0);
Thank you for this great extension!
The text was updated successfully, but these errors were encountered: