Tip&Tech/Zeroboard
이미지 크기 자동 리사이징 하기
MissFlash
2007. 1. 6. 03:01
1. 수정해야 되는 파일
해당 스킨의 view.php 파일
2. 수정해야 되는 부분
다음 코드의 아래쪽에...
다음 코드를 추가합니다.
해당 스킨의 view.php 파일
2. 수정해야 되는 부분
다음 코드의 아래쪽에...
<table border=0 cellspacing=0 cellpadding=10 width=<?=$width?>>
다음 코드를 추가합니다.
<? if ($upload_image1<>"") {
$size = GetImageSize("data/".$id."/".$file_name1);
if($size[0]>$width) $upload_image1 = str_replace("img ", "img width=".(610)." ", $upload_image1);
}
if ($upload_image2<>"") {
$size = GetImageSize("data/".$id."/".$file_name2);
if($size[0]>$width) $upload_image2 = str_replace("img ", "img width=".(610)." ", $upload_image2);
}
?>
$size = GetImageSize("data/".$id."/".$file_name1);
if($size[0]>$width) $upload_image1 = str_replace("img ", "img width=".(610)." ", $upload_image1);
}
if ($upload_image2<>"") {
$size = GetImageSize("data/".$id."/".$file_name2);
if($size[0]>$width) $upload_image2 = str_replace("img ", "img width=".(610)." ", $upload_image2);
}
?>