?
$arr =getimagesize ("Images/album_01.gif");
Echo $arr [3];
$strarr =explode ("" ", $arr [3]);
echo $strarr [1];
?>
<HTML>
<HEAD>
<TITLE> demo picture and so on scale shrink </TITLE>
<script>
function Wa_setimgautosize (IMG)
{
var img=document.all.img1;//get Pictures
var maxwidth=200;//set Picture width limit
var maxheight=100;//set Picture height limit
var heightwidth=img.offsetheight/img.offsetwidth;//set aspect ratio
var widthheight=img.offsetwidth/img.offsetheight;//set ratio of width to height
Alert ("Test" img.offsetheight img.filesize);
if (img.offsetheight>1) alert (img.offsetheight);
if (img.readystate!= "complete") {
Return false;//ensure the picture is fully loaded
}
if (img.offsetwidth>maxwidth) {
Img.width=maxwidth;
Img.height=maxwidth*heightwidth;
}
if (img.offsetheight>maxheight) {
Img.height=maxheight;
Img.width=maxheight*widthheight;
}
}
function Checkimg (IMG)
{
var message= "";
var maxwidth=1;//set Picture width limit
var maxheight=1;//set Picture height limit
if (img.readystate!= "complete") {
Return false;//ensure the picture is fully loaded
}
if (img.offsetheight>maxheight) message = "Height excess:" img.offsetheight;
if (img.offsetwidth>maxwidth) message = "width exceeds:" Img.offsetwidth;
if (message!= "") alert (message);
}
</script>
</HEAD>
<BODY>
<br>
<input id=inp type= "file" onpropertychange= "Img1.src=this.value;" >
</BODY>
</HTML>