웹프로그래밍

Global It Leader!!


그누보드


 
 

본문 썸네일 생성 방법

페이지 정보

작성자 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 4,070회 작성일 13-02-25 02:28

본문

    $img = "<img src='$board_skin_path/img/noimage.gif' border=0 width='$board[bo_1]' title='이미지 없음'>";
    $thumb = $thumb_path.'/'. $list[$i][file][0][file] .".Thumb" ;
    if (!file_exists($thumb))
    {
        $file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
  //첨부파일 이미지가 없으면 내용에 이미지가 있는지 검사
  //if (!file_exists($file)) {
      //    $edit_img = $list[$i]['wr_content'];
     //    if (eregi("data/cheditor[^<>]*\.(gif|jp[e]?g|png|bmp)", $edit_img, $tmp)) {  //에디터에서 삽입한 이미지
        //       $file = $g4[path].'/' . $tmp[0]; // 파일명
     //    }
  //}
  
        if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
        {
    $thumb=thumbnail($file, $board[bo_1], $board[bo_1], 0, 1, 100, 0, "",  $filter, $noimg); //언샾마스크추가
  }
  else {
      $edit_img = $list[$i]['wr_content'];
      if (eregi("data/cheditor[^<>]*\.(gif|jp[e]?g|png|bmp)", $edit_img, $tmp)) {  //에디터에서 삽입한 이미지
         $file = $g4[path].'/' . $tmp[0]; // 파일명
      $thumb=thumbnail($file, $board[bo_1], $board[bo_1], 0, 1, 100, 0, "",  $filter, $noimg); //언샾마스크추가
   }
  }
    }

댓글목록

등록된 댓글이 없습니다.

전체 59
게시물 검색
그누보드 목록
번호 제목 글쓴이 조회 날짜
59 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 16756 03-15
58 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 15909 04-28
57 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11834 05-11
56 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11053 04-28
55 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9208 05-04
54 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7727 04-28
53 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7290 09-29
52 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6888 02-14
51 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5162 08-08
50 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4582 08-09
49 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4546 07-22
48 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4398 09-12
47 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4292 01-30
46 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4239 03-21
45 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4233 02-14
44 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4193 03-27
43 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4187 05-06
42 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4087 03-20
열람중 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4071 02-25
40 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4055 06-24