[eluser]maderic_m[/eluser]
I try to put a watermark to a image in my server, but the watermark don“t appear, this is the code:
Code:
$config['source_image'] = $src; // path to image
$config['wm_type'] = 'overlay';
$config['wm_overlay_path'] = FCPATH . 'images/marca.png'; // path to watermark
$config['wm_vrt_alignment'] = 'top';
$config['wm_hor_alignment'] = 'left';
$config['wm_hor_offset'] = 20;
$config['wm_vrt_offset'] = 0;
$this->image_lib->initialize($config);
if ( !$this->image_lib->watermark())
{
echo 'Error: '. $this->image_lib->display_errors();
}
$this->image_lib->clear();
Is a IIS server with PHP 5.2.6, thanks