갤러리 파일 이미지 흑백처리 문의 드립니다..

갤러리 list.skin.php에서 파일 이미지 출력을 흑백 이미지로 하려면 어떻게 해야할까요?

아시는 분의 답변 부탁 드립니다...




<?
for ($i=0; $i<count($list); $i++)
{

$title = "클릭하시면 제품을 상세하게 보실 수 있습니다.";

$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$board_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}&no=1";
$view_href = "";
//if ($is_admin)
$view_href = "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>";
$view_href1 = "<a href=$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>";

$checkbox = "";
if ($is_checkbox)
$checkbox = "<input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'>";

if($list[$i][wr_2]) $btimg_dc="<img src='$board_skin_path/img/dc.gif' border=0 align=absmiddle>";
else $btimg_dc="";


$tr = "";
if ($i && $i%$board[bo_gallery_cols]==0)
$tr = "</tr><tr>";
echo "$tr";

echo <<<HEREDOC
|

댓글 2개

phpthumb 이라는 거 이용하시면 간단합니다.

http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php

27번 예제에 채도 빼서 흑백으로 섬네일 출력하는 기능이 나와있군요.
답변 감사합니다...
죄송하지만..초보라 삽입 방법을 잘 모르겠습니다...ㅠㅜ
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
12년 전 조회 1,197
12년 전 조회 969
12년 전 조회 738
12년 전 조회 8,174
12년 전 조회 1,029
12년 전 조회 2,209
12년 전 조회 1,523
12년 전 조회 960
12년 전 조회 1,046
12년 전 조회 1,534
12년 전 조회 964
12년 전 조회 1,573
12년 전 조회 1,786
12년 전 조회 957
12년 전 조회 963
12년 전 조회 967
12년 전 조회 1,536
12년 전 조회 857
12년 전 조회 1,003
12년 전 조회 1,002
🐛 버그신고