페이지 정보
와카 2,049 2 2009-05-18 01:52:22본문
이전에 공개해주신 최신 갤러리 스킨이 모두 지에디터에서 올린 이미지파일은
뽑아오질 못하더군요.
그런데 오늘 보니까 에디터에서 삽입한 이미지도 최신글로 뽑아줄수있는 소스가
해당스킨의 latest.skin.php에 이미 삽입되어 있다는 사실을 알게되었습니다.
} else { //게디터에서 삽입한 이미지 뽑자ㅠㅠ
$edit_img = $list[$i]['wr_content'];
if (eregi("data/cheditor4/{$ym}/[^<>]*\.(gif|jpg|png|bmp)", $edit_img, $tmp)) { // data/geditor------
$file = './' . $tmp[0]; // 파일명
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$rate = $img_width / $size[0];
$height = (int)($size[1] * $rate);
// 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
if ($height < $img_height)
// 계산된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $height);
else
// 설정된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $img_height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
}
그럼에도 불구하고, 여전히 지에디터를 사용해서 올린 이미지는 최신갤러리에
출력이 되질않던데... 이같은점을 어떻게해야해결할수 있을까요....;;
뽑아오질 못하더군요.
그런데 오늘 보니까 에디터에서 삽입한 이미지도 최신글로 뽑아줄수있는 소스가
해당스킨의 latest.skin.php에 이미 삽입되어 있다는 사실을 알게되었습니다.
} else { //게디터에서 삽입한 이미지 뽑자ㅠㅠ
$edit_img = $list[$i]['wr_content'];
if (eregi("data/cheditor4/{$ym}/[^<>]*\.(gif|jpg|png|bmp)", $edit_img, $tmp)) { // data/geditor------
$file = './' . $tmp[0]; // 파일명
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$rate = $img_width / $size[0];
$height = (int)($size[1] * $rate);
// 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
if ($height < $img_height)
// 계산된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $height);
else
// 설정된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $img_height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
}
그럼에도 불구하고, 여전히 지에디터를 사용해서 올린 이미지는 최신갤러리에
출력이 되질않던데... 이같은점을 어떻게해야해결할수 있을까요....;;
이전글 ▲^^
다음글 ▼확인부탁 드립니다. ^^
댓글목록
불량감자님의 댓글
불량감자
안녕하세요,,
글을 늦게 확인했네요.
해당 페이지 주소라도 좀 남겨주세요..