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

게시판 목록에서 썸네일이 아닌 이미지 원본을 쓰고 싶은데 ㅜ 채택완료

니빚에잠이오냐 10년 전 조회 7,883

 

목록에서 썸네일이 아닌 첨부파일1의 원본 이미지를 쓰고 싶습니다 .. 화질저하 문제로 ㅜ

config에서 이미지 퀄리티를 100으로 해줘도 조금 떨어지네요 ㅜ

 

원본 스킨 코드입니다.

 

 

<p>                    <a href="<?php echo $list[$i]['href'] ?>">
                    <?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 -->
                        <strong style="width:<?php echo $thumb_width ?>px;height:45px">알림</strong>
                    <?php } else {
                        // $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
                        $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $thumb_width, $thumb_height); // 썸네일 크기를 위에서 선언한 크기사용

                        if($thumb['src']) {
                            // $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';
                            $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$thumb_width.'" height="'.$thumb_height.'">';
                        } else {
                            // $img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';
                            $img_content = '<img src="../../img/no_img.png">';
                        }

                        echo $img_content;
                    }
                     ?>
                    </a></p>

 

http://sir.co.kr/qa/?wr_id=39768&stx=%EB%AA%A9%EB%A1%9D+%EC%9B%90%EB%B3%B8&sst=wr_num&unanswered=0&s_tag=%EA%B7%B8%EB%88%84%EB%B3%B4%EB%93%9C5">[링크1] http://sir.co.kr/qa/?wr_id=538&stx=%EB%AA%A9%EB%A1%9D+%EC%9B%90%EB%B3%B8&sst=wr_num&unanswered=0&s_tag=%EA%B7%B8%EB%88%84%EB%B3%B4%EB%93%9C5">[링크2]  두개보고 해봐도 잘 안되네요 ㅠ

 

도움 부탁 드립니다 ㅠ 

 

 

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

답변 2개

채택된 답변
+20 포인트
10년 전

이렇게 해보세요. 게시판 설정에서 목록에서 파일 사용에 체크하시고.

 

</p><p><a href="<?php echo $list[$i]['href'] ?>"></p><div><?php</div><div>$image = urlencode($list[$i][file][0][file]);</div><div>if (preg_match("/\.(gif|jpg|png)$/i", $image)) {</div><div>$img_0 = G5_DATA_URL.'/file/'.$bo_table.'/'.$image;</div><div>echo "<img src='$img_0'>";</div><div>}</div><div>?></div><p></a></p><p>

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

니빚에잠이오냐
10년 전
잘됩니다!!^^ 감사합니다 ㅜ 제 삽질을 끝내주셔서 ㅠ

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

10년 전

유용한 정보 감사합니다.

로그인 후 평가할 수 있습니다

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

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

로그인