Merge pull request #522 from bbbboom/master

Fix a image prorate error
master 4.52
warlee 2023-04-23 18:03:11 +08:00 committed by GitHub
commit dfb3597ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -90,6 +90,9 @@ class ImageThumb {
}
// 生成按比例缩放的缩图
function prorate($toFile, $toW, $toH){
if(!$this->im){
return false;
}
$toWH = $toW / $toH;
$srcWH = $this->srcW / $this->srcH;
if ($toWH<=$srcWH) {