mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-20 11:49:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@965 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
045f08a8c3
commit
d22dab39c4
9 changed files with 60 additions and 15 deletions
|
|
@ -136,9 +136,10 @@
|
|||
$new_height = $height;
|
||||
if($resize_height>0 && $new_height > $resize_height) $new_height = $resize_height;
|
||||
|
||||
|
||||
// 업로드한 파일을 옮기지 않고 gd를 이용해서 gif 이미지를 만듬 (gif, jpg, png, bmp가 아니면 역시 무시)
|
||||
$thumb = imagecreatetruecolor($new_width, $new_height);
|
||||
if(function_exists('imagecreatetruecolor')) $thumb = imagecreatetruecolor($new_width, $new_height);
|
||||
else $thumb = imagecreate($new_width, $new_height);
|
||||
|
||||
switch($type) {
|
||||
case 'gif' :
|
||||
$source = imagecreatefromgif($source_file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue