PHP图片等比例缩放生成缩略图函数分享
复制代码 代码如下:<?php /* *@im //需要缩放的图片资源 *@filetype //制作的缩略图文件类型 *@dstimW //缩放的图片的宽度 *@dstimH //缩放的图片的高度 *@thumbname //缩略图文件名字function makethumb($im,$dstimW,$dstimH,$thumbname ,$filetype){ //获取im的宽度和高度 $pic_W=imagesx($im); $pic_H=im...