摘要:
<?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 阅读全文