|
$config['image_library'] = 'gd2';
$config['source_image'] = '/path/to/image/mypic.jpg';//这里只支持相对路径,如果前面追加base_url(),写成绝对路径,就会报错,说gd2没有安装和路径不正确
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 75;
$config['height'] = 50;
$this->load->library('image_lib', $config);
$this->image_lib->resize();
请大家帮忙确认一下是否这是bug呢,还是我代码写的有问题呢?
|
|