20,359
社区成员
发帖
与我相关
我的任务
分享
//缩略图
$arr_thumb['image_library'] = 'gd2';
$arr_thumb['source_image'] = $info['full_path'];
echo $info['full_path'];
$arr_thumb['create_thumb'] = FALSE;
$arr_thumb['maintain_ratio'] = TRUE;
$arr_thumb['width'] = 200;
$arr_thumb['height'] = 200;
//载入缩略图类
$this->load->library('image_lib', $arr_thumb);
//执行动作
$status = $this->image_lib->resize();
if(!$status){
error('缩略图动作失败');
}