mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 21:29: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
|
|
@ -738,7 +738,7 @@
|
|||
$target_filename = sprintf('%s%d.gif', $target_path, $member_srl);
|
||||
|
||||
// 파일 정보 구함
|
||||
list($width, $height, $type, $attrs) = @getimagesize($source_file);
|
||||
list($width, $height, $type, $attrs) = @getimagesize($target_file);
|
||||
|
||||
// 지정된 사이즈보다 크거나 gif가 아니면 변환
|
||||
if($width > $max_width || $height > $max_height || $type!=1) FileHandler::createImageFile($target_file, $target_filename, $max_width, $max_height, 'gif');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue