1. 首页
  2. 数据库
  3. 其它
  4. PHP简单创建压缩图的方法

PHP简单创建压缩图的方法

上传者: 2020-12-22 13:19:40上传 PDF文件 44.81KB 热度 11次
本文实例讲述了PHP简单创建压缩图的方法。分享给大家供大家参考,具体如下: <?php //创建压缩图 function _create_thumbnail($srcFile, $toW, $toH, $toFile="") { if ($toFile == "") { $toFile = $srcFile; } $info = ""; $data = getimagesize($srcFile, $info); if (!$data) return false; //将文件载入到资源变量im中 switch ($data[2]) {
下载地址
用户评论