썸네일 생성시 크롭사용안함일 때도 크롭되던 오류 수정
This commit is contained in:
@ -254,12 +254,6 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if($size[1] / $size[0] >= $ratio) {
|
|
||||||
$src_h = round($src_w * $ratio);
|
|
||||||
} else {
|
|
||||||
$src_w = round($size[1] / $ratio);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$dst = imagecreatetruecolor($dst_w, $dst_h);
|
$dst = imagecreatetruecolor($dst_w, $dst_h);
|
||||||
|
|||||||
Reference in New Issue
Block a user