Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14115

how to write 2 or more text watermark using image_lib ?

$
0
0
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 ?

Viewing all articles
Browse latest Browse all 14115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>