Skip to content
New issue

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

php8.1会报错 #1

Open
zjkal opened this issue May 7, 2022 · 1 comment
Open

php8.1会报错 #1

zjkal opened this issue May 7, 2022 · 1 comment

Comments

@zjkal
Copy link

zjkal commented May 7, 2022

PHP8.1以上会报精度问题的错误, 有空修复一下吧, 大佬
Implicit conversion from float 69.0928270042194 to int loses precision

创建新的背景画布

    if($height>=$thumb_h){
        $thumb=imagecreatetruecolor($width,$thumb_h);
    }else{
        $thumb=imagecreatetruecolor($width,$height);
        $thumb_h=$height;
    }
@zjkal
Copy link
Author

zjkal commented May 8, 2022

PHP8报float精度错误的, 可以暂时用我这个composer包, 坐等大佬更新

composer require zjkal/thumb:*

https://github.com/zjkal/Thumb

@zjkal zjkal closed this as completed May 8, 2022
@zjkal zjkal reopened this May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant