mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 05:39:58 +09:00
이미지 썸네일 생성시 코드 오류 수정 (같은 크기로 리사이즈시 오류 발생)
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2313 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
23c82ef85d
commit
d428eb6f92
2 changed files with 3 additions and 3 deletions
|
|
@ -208,8 +208,8 @@
|
|||
@imagefilledrectangle($thumb,0,0,$resize_width-1,$resize_height-1,$white);
|
||||
|
||||
// 이미지 정보가 정해진 크기보다 크면 크기를 바꿈 (%를 구해서 처리)
|
||||
if($resize_width>0 && $width > $resize_width) $width_per = $resize_width / $width;
|
||||
if($resize_height>0 && $height > $resize_height) $height_per = $resize_height / $height;
|
||||
if($resize_width>0 && $width >= $resize_width) $width_per = $resize_width / $width;
|
||||
if($resize_height>0 && $height >= $resize_height) $height_per = $resize_height / $height;
|
||||
if($width_per < $height_per) $per = $height_per;
|
||||
else $per = $width_per;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue