이미지 화질 저하 문제
본문
안녕하세용
css에서
#table img {width:267px; height:267px}
이렇게 해서 이미지를 강제로 줄여서 쓰고 있습니다.
원래는 500 x 500px 이구요...
근데 화질이 엄청나게 저하가 되네요;;; 뿌옇게 되고...
게시판 리스트에서 쓰는 thumbnail.lib.php 를 사용하면 괜찮아지나요?
일반페이지에서 사용법좀 알려주세요..ㅠ
답변 2
<?php
if ($list[$i]['is_notice']) { // 공지사항 ?>
<strong style="width:<?php echo $board['bo_gallery_width'] ?>px;height:<?php echo $board['bo_gallery_height'] ?>px">공지</strong>
<?php } else {
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';
} else {
$img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';
}
echo $img_content;
}
?>
</a>
function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_heigh)