CodeIgniter 没有得到调整大小的图像

CodeIgniter not getting the resized image

这是我正在尝试的代码 运行.. 图片我已经存放在images文件夹中,路径为:C:\xampp\htdocs\ci\images,与application文件夹同级

public function display(){
    $config['image_library'] = 'gd2';
    $config['source_image'] = '/images/mypic.jpg';
    $config['new_image']='/images/re_mypic.jpg';
    $config['create_thumb'] = TRUE;
    $config['maintain_ratio'] = TRUE;
    $config['width']    = 75;
    $config['height']   = 50;
    $this->load->library('image_lib', $config);
    $this->image_lib->resize();
}

我没有收到任何错误或其他信息

添加这个并检查你的代码错误

if ( ! $this->image_lib->resize()) {
    echo $this->image_lib->display_errors(); 
}