테스트 사이트 - 개발 중인 베타 버전입니다

안녕하세요 초보 질문좀 드립니다. 채택완료

장미란 11년 전 조회 4,779

mmm1.JPG
 
mmm2.JPG
 
mmm2.JPG
 

보이는  사진처럼 이미지 썸네일 퀠리티가 최신글 메인화면 에서는 깔끔하게 잘나오는데요 게시판 리스트에서는 흐릿하게 보이는데요 고수님들 답변좀 부탁합니다. 아래는 최신글소스하고 게시판 리스트 소스입니다."수고하세요"

[최신글소스]

$cols  = 1; //  이미지 가로갯수 //  이미지 세로 갯수는 메인에서 지정(총 이미지 수) $imgwidth=180; //표시할 이미지의 가로사이즈 $imgheight=100; //표시할 이미지의 세로사이즈 $img_quality = 100; $image_h  = 0; // 이미지 상하 간격

$col_width = (int)(100 / $cols);

$data_path = $g4[path]."/data/file/$bo_table"; ?>

                       
                           
     전체보기
 
            0 && $i%$cols==0) { echo ""; }    ?>                    ";    }    ?>    게시물이 없습니다."; } ?>          
   http://img.youtube.com/vi/".$v."/hqdefault.jpg' width='{$imgwidth}' height='{$imgheight}' align='absmiddle' border='0' style='margin:10px;'>";

}elseif (file_exists($thumb)) { $thumb_file = "";      }else{ $thumb_file = "";  }

                echo $list[$i][icon_reply] . " ";     echo "

";     echo "";                 echo "";echo "
".$thumb_file."
{$list[$i]['subject']}     
";    ?>       
 

[게시판 리스트소스]

$img_width = 165; //섬네일 가로크기 $img_height = 95; //섬네일 세로크기 $img_quality = 100;//퀠리티

if (!$img_width) alert("게시판 설정 : 여분 필드 1 에 목록에서 보여질 이미지의 폭을 설정하십시오. (픽셀 단위)"); if (!$img_height) alert("게시판 설정 : 여분 필드 2 에 목록에서 보여질 이미지의 높이를 설정하십시오. (픽셀 단위)"); if (!$img_quality) alert("게시판 설정 : 여분 필드 3 에 목록에서 보여질 이미지의 질(quality)을 비율로 설정하십시오. (100 이하)"); if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");

$data_path = $g4[path]."/data/file/$bo_table"; $thumb_path = $data_path.'/thumb';

@mkdir($thumb_path, 0707); @chmod($thumb_path, 0707);

// 선택옵션으로 인해 셀합치기가 가변적으로 변함 $colspan = 7;

//if ($is_category) $colspan++; if ($is_checkbox) $colspan++; if ($is_good) $colspan++; if ($is_nogood) $colspan++;

// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요. // 제목 ?>

| ";     for ($i=0; $i$b_s$arr[$i]$b_e  | ";

if ($cnt == $cnt_bo_1) { $cnt = 0; $str .= " "; }     $cnt++;     }     if ($cnt0 == 0 ) { $bb_s=""; $bb_e=""; } ?> 전체 ()

        TOTAL        

                   
class="bbs_line2">
 ";         $thumb = $thumb_path.'/'.$list[$i][wr_id];         // 썸네일 이미지가 존재하지 않는다면         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                     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);             }         }

        if (file_exists($thumb))             $img = "";       else             if(preg_match("/\.(swf|wma|asf)$/i","$file") && file_exists($file))             { $img = ""; }        if (preg_match("@http://img.youtube.com/vi/".$v."/hqdefault.jpg' width='".$img_width."' height='".$img_height."' align='absmiddle' border='0'>"; }else if (file_exists($thumb)) { $img = ""; }  ?>      

                                          "; } ?>
                                                  
      ";         else if ($wr_id == $list[$i][wr_id]) // 현재위치             echo "{$list[$i][num]}. ";         else             echo "{$list[$i][num]}. ";         if ($is_category && $list[$i][ca_name]) {             echo "[{$list[$i][ca_name]}] ";         }         $style = "";         if ($list[$i][is_notice]) $style = " style='font-weight:bold;'";

        echo "";         echo $list[$i][subject];         echo "";         if ($list[$i][comment_cnt])             echo " {$list[$i][comment_cnt]}";         echo " " . $list[$i][icon_new];         echo " " . $list[$i][icon_file];         echo " " . $list[$i][icon_link];         echo " " . $list[$i][icon_hot];         echo " " . $list[$i][icon_secret];         echo $nobr_end;         ?>   

Name:   |  Date:   |  조회수:   |  추천:           |  비추천:
       
         
      ";         echo $img;         echo "";         ?>        
       
height="1" bgcolor="#e5e5e5">
게시물이 없습니다.

      이전검색"; } ?>     ", $write_pages);     $write_pages = str_replace("이전", "", $write_pages);     $write_pages = str_replace("다음", "", $write_pages);     $write_pages = str_replace("맨끝", "", $write_pages);     $write_pages = preg_replace("/([0-9]*)<\/b>/", "$1", $write_pages);     */     $write_pages = preg_replace("/([0-9]*)<\/b>/", "$1", $write_pages);     $write_pages = str_replace(">처음", " class=\"direction prev\">  ", $write_pages);     $write_pages = str_replace(">이전", " class=\"direction prev\"> ", $write_pages);     $write_pages = str_replace(">다음", " class=\"direction next\" > ", $write_pages);     $write_pages = str_replace(">맨끝", " class=\"direction next\" > ", $write_pages);     $write_pages = str_replace(" ", "", $write_pages);     ?>         class=\"direction next\">다음검색 "; } ?>

                               
       
                             
 
                     

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

답변 1개

채택된 답변
+20 포인트
11년 전
게시판 리스트 소스에서 
$img_width = 180; //섬네일 가로크기
$img_height = 100; //섬네일 세로크기  이렇게 한번 바꿔 보시면 어때요~..?
로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

장미란
11년 전
이미지가 커질수록 좀더 흐릿해지는거 같아요

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

답변을 작성하려면 로그인이 필요합니다.

로그인