<?
$imgInfo = getimagesize($data[file_name2]);
$imgX = $imgInfo[0];
$defX = 595;
// echoMsg ("$imgX");
if ($imgX > $defX) {
$per = $imgX / $defX;
$imgY = ceil($imgInfo[1] / $per);
$upload_image2 = "<img src=".$data[file_name2]." width=".$defX."height=".$imgY.">";
}
?>
- 이미지 사이즈의 x,y 축 사이즈 구한 후 사이즈 재조정 |
|