how to write 2 or more text watermark using image_lib ? |
hello
Am using image_lib and it works very nice -------------- $config['source_image'] = getcwd().'/upload/photo.jpg'; $config['wm_text'] = "text 1"; $config['wm_type'] = 'text'; $config['wm_font_path'] = './application/fonts/arial.ttf'; $config['wm_font_size'] = '18'; $config['wm_font_color'] = 'ffffff'; $config['wm_vrt_alignment'] = 'top'; $config['wm_hor_alignment'] = 'center'; $config['wm_padding'] = '10'; $config['dynamic_output'] = true; $config['wm_hor_offset'] = '120'; $config['wm_vrt_offset'] = '100'; $this->load->library('image_lib',$config); $this->image_lib->initialize($config); if ( ! $this->image_lib->watermark()) { echo $this->image_lib->display_errors(); } $this->image_lib->clear(); ------------- yet I have at least 3 different text which I want to put in the photo ( different positions ) how should I do that ? |
Welcome Guest, Not a member yet? Register Sign In |