|
发表于 2009-9-13 06:39:09
|
显示全部楼层
我这图片也印不上啊。产生新图了都!
$this->load->library('image_lib');
$this->load->helper('html');
$img_dr = 'system/dogwin/images/zm.jpg';
$config['source_image'] = $img_dr;
//$config['wm_text'] = 'DogWin';
$config['create_thumb'] = TRUE;
$config['wm_type'] = 'overlay';//text
$config['wm_padding'] = '0';
//$config['wm_font_path'] = 'system/fonts/texb.ttf';
//$config['wm_font_size'] = '20';
//$config['wm_font_color'] = 'FF1438';
$config['wm_vrt_alignment'] = 'bottom';
$config['wm_hor_alignment'] = 'right';
//$config['wm_padding'] = '20';
$config['wm_overlay_path'] = 'system/dogwin/images/top.jpg';
$config['wm_opacity'] = 10;
$config['wm_x_transp'] = '4';//水印图像通道
$config['wm_y_transp'] = '4';//水印图像通道
$config['show_image'] = img($img_dr);
$this->image_lib->initialize($config);
$this->image_lib->watermark();
$this->image_lib->clear();
//show
$this->load->view('print_image',$config,FALSE); |
|