缩略图类一次不能生成不同大小的图片吗?

浏览:496 发布日期:2014/03/22 分类:求助交流
$image = new \Think\Image();
$image->open('./Uploads/'.$file['savepath'] . $file['savename']);
$image->thumb(100,150)->save('./Uploads/'.$file['savepath'].$width.'_'.$file['savename']);
$image->thumb(200, 200)->save('./Uploads/'.$file['savepath'].$width1.'_'.$file['savename']);
$image->thumb(300, 300)->save('./Uploads/'.$file['savepath'].$width2.'_'.$file['savename']);


怎么每次都是100 的呢,没有其他的
最佳答案
评论() 相关
后面还有条评论,点击查看>>