웹프로그래밍

Global It Leader!!


그누보드


 
 

본문 썸네일 생성 방법

페이지 정보

작성자 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 4,309회 작성일 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); //언샾마스크추가
   }
  }
    }

댓글목록

등록된 댓글이 없습니다.

전체 71
게시물 검색
그누보드 목록
번호 제목 글쓴이 조회 날짜
71 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 16945 03-15
70 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 16119 04-28
69 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12193 05-11
68 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11401 04-28
67 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9418 05-04
66 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7923 04-28
65 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7492 09-29
64 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7129 02-14
63 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5685 08-08
62 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5492 08-09
61 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4747 07-22
60 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4670 09-12
59 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4545 07-16
58 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4500 01-30
57 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4480 03-21
56 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4478 02-14
55 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4450 05-06
54 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4379 03-27
열람중 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4310 02-25
52 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4306 03-20