phpgetimagesize函数获取图片宽高信息
时间:2021-07-01 10:21:17
帮助过:26人阅读
- $images_array = array("http://static.zend.com/img/logo.gif");
- foreach($images_array as $image)
- {
- list($width, $height, $type, $attr) = getimagesize($image);
- $new_height = (int)(192 / $width * $height);
- echo '
- ';
- }
|