CI的图像处理类在WAMP和LAMP上均无法生成,这是什么情况?
本帖最后由 lichaoying 于 2012-4-5 16:58 编辑$this->load->library('image_lib');
$config['image_library'] = 'gd2';
$config['source_image'] = $save_path.$new_file_name;
$config['new_image'] = $save_path."thumb_".$new_file_name;
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 90;
$config['height'] = 60;
$this->load->library('image_lib', $config);
$this->image_lib->resize();
不好意思,己启用其它外部类,供大家分享!
require_once 'thumb_class.php';
$th=new ThumbHandler();
$th->setSrcImg($save_path.$new_file_name);
$th->setCutType(1);
$th->setDstImg($save_path."thumb_".$new_file_name);
$th->createImg(90,60);
页:
[1]