bmp 첨부하면 화면에 볼수 없을까요? 정보
bmp 첨부하면 화면에 볼수 없을까요?본문
현재 소스에서 BMP로 사진을 첨부하면 화면에 (VIEW) 안보이는데
다른 스킨에서는 되는거 보니 스킨소스를 수정하는걸로 되는것 같은데 어떻게 고쳐야 할지요..도와주세요
현재 소스는 아래와 같습니다..
<? // ---------- 1번 파일 출력
$vimg0_wh = "width='150' height='195'";
if ($view[file][0][view]){
$vimg0_path="{$view[file][0][path]}/{$view[file][0][file]}";
$vimg0_view="<img src='$vimg0_path' $vimg0_wh name='target_resize_image[]' onclick=\"image_window(this);\" style='border:1px solid #666666; cursor:hand;'>";
echo "$vimg0_view";
}
?>
<? // --------- 2번 파일부터 출력
// (환경설정의 업로드갯수가 지정된 만큼 출력(noimag포함)해야 하는데 업로드한것만 출력됨)
for ($i=1; $i<(count($view[file])-1); $i++) {
$vimg_wh = "width='150' height='195'";
if ($view[file][$i][view]){
$vimg_path="{$view[file][$i][path]}/{$view[file][$i][file]}";
$vimg_view="<img src='$vimg_path' $vimg_wh name='target_resize_image[]' onclick='image_window(this);' style='border:1px solid #666666; cursor:hand;'>";
echo "$vimg_view ";
}
}
?>
-----------------------------------------------------------------------------------------
이런식으로 하면 bmp가 출력이 되네요...
<?
$fpath = $view[file][0][path]."/".$view[file][0][file];
if($view[file][0][file]) {
if($view[file][0][image_width] < 150 && $view[file][0][image_height] > 195) {
echo("<img src=\"".$fpath."\" alt=\"사진\"/>");
}
else {
echo("<img src=\"".$fpath."\" width=\"150\" height=\"195\" alt=\"사진\"/>");
}
}
?>
----------------------------------------------------------------------------------
근데 저는 클릭하여 새창으로 봐야 해서(제일 위쪽 소스) 어떻게 조합을 해야 할지 도통 모르겠어요
도와주세요
댓글 전체
저도 그렇게 해서 사용하고 있습니다.
...gif|jpg|bmp