섬네일 이미지가 뿌옇게 나와요 정보
섬네일 이미지가 뿌옇게 나와요
본문
메인에 이미지를 뿌리는데 이렇게 뿌옇게 나와요
소스는 아래에 있구요
또렷하게 나오게하는 방법이 없나요?
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 3; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h = 1; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
?>
<style type="text/css">
<!--
.data { font-family:돋움; font-size:8pt; color:#565656; }
-->
</style>
<table width="236" border="0" cellspacing="0" cellpadding="0">
<!-- 최신글 제목
<tr><td>
<table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="<?=$latest_skin_path?>/img/bullet00.gif" width="12" height="12" align="absmiddle">
<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong</td>
<td align="right"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/noti_box_bt.gif" width="49" height="14" border="0"></a></td>
</tr>
</table></td>
</tr>
<tr>
<td height="1" bgcolor="cccccc"> </td>
</tr>
<tr>
<td height="2" bgcolor="E9E5E5"> </td>
</tr>
</table>
</td></tr>
-->
<tr>
<td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
?>
<td width="<?=$col_width?>%" align="center" valign='top'>
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];
//echo $data_path;
if ( file_exists($thumb) )
$img = $thumb;
$style = "font-family:돋움; font-size:9pt; color:#565656;";
if ($list[$i][icon_new])
$style = "style='font-family:돋움; font-size:9pt; color:#6B6B6B;' ";
$subject = "<span $style>".cut_str($list[$i][subject],15)."</span>"; //제목 글자수 자르기
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table width='95' cellpadding='3' cellspacing='10' border='0' bgcolor='efece6'>";
echo "<tr><td valign='top' align='center' bgcolor='#FFFFFF'><a href='../page.php?Main=4&sub=1'><img src='$img' width='116' height='96' border='0'></a></td></tr></table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td height=80 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table></td>
</tr>
</table>
<script language="javascript">
function popupImage(imageURL){
imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=no,resizable=no,width=100,height=100,top=0,left=0");
imageHandle.document.write("<title> </title>");
imageHandle.document.write("<style>");
imageHandle.document.write("*{margin:0;padding:0;border:0;}");
imageHandle.document.write("</style>");
imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+6,this.height+55);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"클릭하면 닫힙니다.\">");
}
</script>
소스는 아래에 있구요
또렷하게 나오게하는 방법이 없나요?
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 3; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h = 1; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
?>
<style type="text/css">
<!--
.data { font-family:돋움; font-size:8pt; color:#565656; }
-->
</style>
<table width="236" border="0" cellspacing="0" cellpadding="0">
<!-- 최신글 제목
<tr><td>
<table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="<?=$latest_skin_path?>/img/bullet00.gif" width="12" height="12" align="absmiddle">
<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong</td>
<td align="right"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/noti_box_bt.gif" width="49" height="14" border="0"></a></td>
</tr>
</table></td>
</tr>
<tr>
<td height="1" bgcolor="cccccc"> </td>
</tr>
<tr>
<td height="2" bgcolor="E9E5E5"> </td>
</tr>
</table>
</td></tr>
-->
<tr>
<td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
?>
<td width="<?=$col_width?>%" align="center" valign='top'>
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];
//echo $data_path;
if ( file_exists($thumb) )
$img = $thumb;
$style = "font-family:돋움; font-size:9pt; color:#565656;";
if ($list[$i][icon_new])
$style = "style='font-family:돋움; font-size:9pt; color:#6B6B6B;' ";
$subject = "<span $style>".cut_str($list[$i][subject],15)."</span>"; //제목 글자수 자르기
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table width='95' cellpadding='3' cellspacing='10' border='0' bgcolor='efece6'>";
echo "<tr><td valign='top' align='center' bgcolor='#FFFFFF'><a href='../page.php?Main=4&sub=1'><img src='$img' width='116' height='96' border='0'></a></td></tr></table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td height=80 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table></td>
</tr>
</table>
<script language="javascript">
function popupImage(imageURL){
imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=no,resizable=no,width=100,height=100,top=0,left=0");
imageHandle.document.write("<title> </title>");
imageHandle.document.write("<style>");
imageHandle.document.write("*{margin:0;padding:0;border:0;}");
imageHandle.document.write("</style>");
imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+6,this.height+55);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"클릭하면 닫힙니다.\">");
}
</script>
댓글 전체

썸네일을 뽑아 오는 소스가 있을겁니다..
퀄리티 값을 올려서 사용해 보세요..
서버 버전에 따라서 9 또는 90을 넣어 보세요..
퀄리티 값을 올려서 사용해 보세요..
서버 버전에 따라서 9 또는 90을 넣어 보세요..