Skip to content

Commit

Permalink
Merge pull request #522 from bbbboom/master
Browse files Browse the repository at this point in the history
Fix a image prorate error
  • Loading branch information
kalcaddle authored Apr 23, 2023
2 parents b29692d + 39095a1 commit dfb3597
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/kod/ImageThumb.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ function distortion($toFile, $toW, $toH){
}
// 生成按比例缩放的缩图
function prorate($toFile, $toW, $toH){
if(!$this->im){
return false;
}
$toWH = $toW / $toH;
$srcWH = $this->srcW / $this->srcH;
if ($toWH<=$srcWH) {
Expand Down

1 comment on commit dfb3597

@kalcaddle
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Please sign in to comment.