function water_mark($furl=""){
$config['source_image'] = $furl;
$config['wm_type'] = 'overlay';
$config['wm_vrt_alignment']="bottom";
$config['wm_hor_alignment']="right";
$config['wm_overlay_path'] = 'publish/images/y_logo.png';
$this->image_lib->initialize($config);
$this->image_lib->watermark();
$this->image_lib->clear();
}
function thumb($furl,$width=125,$height=163,$new_img=""){
$config['image_library'] = 'gd2';
$config['source_image'] =$furl;
$config['new_image'] = $furl.'.thumb.jpg';
$config['width'] = $width;
$config['height'] = $height;
$this->image_lib->initialize($config);
$this->image_lib->resize();
$this->image_lib->clear();
}
/*先生成水印再生成缩略图 可以成功*/
//$this->water_mark($row);
//$this->thumb($row);
$this->thumb($row);
$this->water_mark($row);//不能看到水印啊,求解?