Welcome Guest, Not a member yet? Register   Sign In
Problem with watermark over image
#1

[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
#2

[eluser]zlatiborac[/eluser]
What image library are you using? And are you sure it works?
#3

[eluser]maderic_m[/eluser]
GD Support enabled
GD Version bundled (2.0.34 compatible)

I think that it works becouse before try to put the watermark, I resize the image and works fine
#4

[eluser]zlatiborac[/eluser]
Then it is a problem with paths to your images. Did you checked them?
#5

[eluser]maderic_m[/eluser]
yes, I checked both routes and these are correct




Theme © iAndrew 2016 - Forum software by © MyBB