스킨 질문 입니다.

http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=80656&sca=%C3%D6%B1%D9%B0%D4%BD%C3%B9%B0&sfl=wr_subject&stx=%BA%ED%B7%A2&sop=and

이쪽에있는 겔러리 스킨인데요
자꾸 thumb.lib라인 6번째가 에러 난다고 하는데 뭔지 모르것네요

혹시 사용하시고 계신분 계신지 알고 싶습니다.

thumb.lib 에서 6번째 내용이 이거거든요

function createThumb($imgWidth, $imgHeight, $imgSource, $imgThumb='', $iscut=false)
|

댓글 3개

createThumb()함수가 있는 파일을 include 안 하신 듯합니다.
index.php에 어떤 함수를 넣어야 하죠 그럼?요?

include 시킬만한게 없던데 ㅠ
thumb.lib에 있는 내용 입니다.


<?
if (!defined('_GNUBOARD_')) exit;

// 원본 이미지를 넘기면 비율에 따라 썸네일 이미지를 생성함
// 가로, 세로, 파일경로, 생성경로, true
function createThumb($imgWidth, $imgHeight, $imgSource, $imgThumb='', $iscut=false)<--요넘이 6번재줄이거든요
{
if (!$imgThumb)
$imgThumb = $imgSource;

$size = getimagesize($imgSource);

if ($size[2] == 1)
$source = imagecreatefromgif($imgSource);
else if ($size[2] == 2)
$source = imagecreatefromjpeg($imgSource);
else if ($size[2] == 3)
$source = imagecreatefrompng($imgSource);
else
continue;

$rate = $imgWidth / $size[0];
$height = (int)($size[1] * $rate);

if ($height < $imgHeight) {

$target = @imagecreatetruecolor($imgWidth, $height);

} else {

$target = @imagecreatetruecolor($imgWidth, $imgHeight);

}

@imagecopyresampled($target, $source, 0, 0, 0, 0, $imgWidth, $height, $size[0], $size[1]);
@imagejpeg($target, $imgThumb, 100);
@chmod($imgThumb, 0606); // 추후 삭제를 위하여 파일모드 변경
}

?>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고