摘要:
<?php$src_img = "img/test.jpg"; //原图$dst_w = 320;$dst_h = 240; //目标list($width, $height) = getimagesize($src_img); //getimagesize得到图片的长宽$dst_scale = $dst_h/$dst_w ;$src_scale = $height/$width ;if($src_scale >= $height) { //过高 echo "too height"; $w = intval($width); $h = int 阅读全文
posted @ 2012-05-09 15:08
贪狼大叔
阅读(577)
评论(0)
推荐(0)
浙公网安备 33010602011771号