php 获取图片高宽与宽度代码

作者:简简单单 2010-09-30

//you do not need to alter these functions

 代码如下 复制代码
function getheight($image) {
 $size = getimagesize($image);
 $height = $size[1];
 return $height;
}


//you do not need to alter these functions

 代码如下 复制代码
function getwidth($image) {
 $size = getimagesize($image);
 $width = $size[0];
 return $width;
}

相关文章

精彩推荐