Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 6, 2018 9:08 AM
Views: 12
  1. $config['source_image'] = '/path/to/image/mypic.jpg';
  2. $config['wm_text'] = 'Copyright 2006 - John Doe';
  3. $config['wm_type'] = 'text';
  4. $config['wm_font_path'] = './system/fonts/texb.ttf';
  5. $config['wm_font_size'] = '16';
  6. $config['wm_font_color'] = 'ffffff';
  7. $config['wm_vrt_alignment'] = 'bottom';
  8. $config['wm_hor_alignment'] = 'center';
  9. $config['wm_padding'] = '20';
  10.  
  11. $this->image_lib->initialize($config);
  12.  
  13. $this->image_lib->watermark();