mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
썸네일 생성시 2번째 첨부파일의 썸네일이 생성되는 문제와 첨부파일없이 내용에 이미지 링크되었을때 썸네일이 생성되지 않는 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4364 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5a135acfa6
commit
cd8512a846
2 changed files with 17 additions and 11 deletions
|
|
@ -333,21 +333,26 @@
|
|||
// 파일을 쓰고 끝냄
|
||||
switch($target_type) {
|
||||
case 'gif' :
|
||||
@imagegif($thumb, $target_file, 100);
|
||||
$output = @imagegif($thumb, $target_file);
|
||||
break;
|
||||
case 'jpeg' :
|
||||
case 'jpg' :
|
||||
@imagejpeg($thumb, $target_file, 100);
|
||||
$output = @imagejpeg($thumb, $target_file, 100);
|
||||
break;
|
||||
case 'png' :
|
||||
@imagepng($thumb, $target_file, 9);
|
||||
$output = @imagepng($thumb, $target_file, 9);
|
||||
break;
|
||||
case 'wbmp' :
|
||||
case 'bmp' :
|
||||
@imagewbmp($thumb, $target_file, 100);
|
||||
$output = @imagewbmp($thumb, $target_file, 100);
|
||||
break;
|
||||
}
|
||||
|
||||
if(!$output) return false;
|
||||
|
||||
@chmod($target_file, 0644);
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue