#251 ratio로 썸네일 생성시 가로/세로의 범위를 벗어나지 않도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2951 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-11-08 07:22:43 +00:00
parent 64cbe86b8b
commit 22629d252e

View file

@ -217,7 +217,9 @@
else $height_per = $height / $resize_height;
if($thumbnail_type == 'ratio') {
$per = $width_per;
if($width_per>$height_per) $per = $height_per;
else $per = $width_per;
$resize_width = $width * $per;
$resize_height = $height * $per;
} else {
if($width_per < $height_per) $per = $height_per;