编程技术记录 Good Luck To You!

利用image扩展压缩图片

  $image = \think\Image::open($filepath); 传入绝对路径     // 对图像使用默认的顺时针旋转90度操作 $res = $image->save('youpath/333.JPG',$type = null, $quality = 10, $interlace = true);图像保存参数save方法可以配置的参数参数 默认 描述pathname 必填项 图像保存路径名称type 默认与原图
作者:admin 分类:未分类 浏览:528 评论:0