이미지 업로드시... 정보
이미지 업로드시...본문
이미지 업로드시 이미지 크기가 이미지 밑에 자동으로 나오게 하는 방법을 알고싶습니다.
이미지 밑에 1024x768 이런식으로 말이죠.
어떻게 하는 방법 없을까요?
댓글 전체
view.skin.php 에서 출력부분에서 이미지만 골라서...
이렇게 해보세요..
<?
// 파일 출력
for($i=0; $i<=count($view[file]); $i++)
{ if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
$f_type=""; $f_style=""; $f_path=""; $f_file ="";
$f_type=$view[file][$i][image_type];
if($f_type=='1' || $f_type=='2' || $f_type=='3' ||$f_type=='6' || $f_type=='7') $f_style="img";
$f_file = urlencode($view[file][$i][file]); //이미지만 골라서...
if(preg_match("/\.(jp[e]?g|tif|bmp|gif|png)$/i","$f_file") && $f_style=="img")
{//이미지면
echo"크기:<font color='red'>{$view[file][$i][image_width]} x {$view[file][$i][image_height]}</font><br>";
echo"제목:<font color='blue'>{$view[file][$i][bf_content]}</font><br>";
}
}
?>
이렇게 해보세요..
<?
// 파일 출력
for($i=0; $i<=count($view[file]); $i++)
{ if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
$f_type=""; $f_style=""; $f_path=""; $f_file ="";
$f_type=$view[file][$i][image_type];
if($f_type=='1' || $f_type=='2' || $f_type=='3' ||$f_type=='6' || $f_type=='7') $f_style="img";
$f_file = urlencode($view[file][$i][file]); //이미지만 골라서...
if(preg_match("/\.(jp[e]?g|tif|bmp|gif|png)$/i","$f_file") && $f_style=="img")
{//이미지면
echo"크기:<font color='red'>{$view[file][$i][image_width]} x {$view[file][$i][image_height]}</font><br>";
echo"제목:<font color='blue'>{$view[file][$i][bf_content]}</font><br>";
}
}
?>
이미지만 골라서...
달수님 팁은 아기자기 합니다^^
나중에 한번 해봐야겠네요
스크랩!!!!
달수님 팁은 아기자기 합니다^^
나중에 한번 해봐야겠네요
스크랩!!!!
감사합니다 ^^