复制代码 代码如下: /********************** *filename – path to the image *tmpname – temporary path to thumbnail *xmax – max width *ymax – max height */ function resize_image($filename, $tmpname, $xmax, $ymax) { $ext = explode(“.”, $filename); $ext = $ext[cou