mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
#251 ratio로 썸네일 생성시 가로/세로의 범위를 벗어나지 않도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2951 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
64cbe86b8b
commit
22629d252e
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue