mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
#312 이미지마크에도 관리자가 설정한 범위이내이면 그대로 등록하도록 기능 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3281 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c95a9bd93a
commit
1a141e926e
1 changed files with 6 additions and 1 deletions
|
|
@ -1036,7 +1036,12 @@
|
|||
FileHandler::makeDir($target_path);
|
||||
|
||||
$target_filename = sprintf('%s%d.gif', $target_path, $member_srl);
|
||||
FileHandler::createImageFile($target_file, $target_filename, $max_width, $max_height, 'gif');
|
||||
|
||||
// 파일 정보 구함
|
||||
list($width, $height, $type, $attrs) = @getimagesize($target_file);
|
||||
|
||||
if($width > $max_width || $height > $max_height || $type!=1) FileHandler::createImageFile($target_file, $target_filename, $max_width, $max_height, 'gif');
|
||||
else @copy($target_file, $target_filename);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue