구매고객
판매자
솔루션별 질문
객관적이지 않은 사유는 인정되지 않으며, 신고 권한이 제재될 수 있습니다.
0/200
신고 사유에 해당하지 않는 글을 신고하면 신고 권한이 제한될 수 있습니다.
이 회원의 커뮤니티 콘텐츠와 알림을 내 화면에서만 숨깁니다.
신고는 접수되지 않으며, 숨긴 회원은 내 정보에서 다시 보이게 할 수 있습니다.
신고할 글이 아닌가요? 이 회원만 숨기기
신고하기로 돌아가기
그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.
전체 67032개 중 29981-30000번째
댓글 5개
if (!file_exists($thumb))
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
{
$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
continue;
$rate = $board[bo_skin_3] / $size[0];
$height = (int)($size[1] * $rate);
if ($height < $board[bo_skin_4])
$dst = imagecreatetruecolor($board[bo_skin_3], $board[bo_skin_4]);
else
$dst = imagecreatetruecolor($board[bo_skin_3], $board[bo_skin_4]);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $board[bo_skin_3], $board[bo_skin_4], $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], 100);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
요 부분인데 정신이 하나도 없네요.
간단 게시판에 간단 최근게시물 출력하면 잘 될텐데... 소스가 너무 복잠하여 머리가 아픕니다.
다음분께 패스 ...
프리즈 도와주세요..ㅜㅜ
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], 100);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], 9); 로 바꾸어 보세요