Welcome Guest, Not a member yet? Register   Sign In
watermarking
#1

[eluser]ravikota[/eluser]
Code:
$config['image_library'] = 'GD2';
$config['source_image'] = './photo_uploads/ww.jpeg';
$config['wm_overlay_path'] = './photo_uploads/bird.jpeg';
$config['wm_type'] = 'overlay';
$config['dynamic_output'] = false;
$config['wm_opacity'] = 50;
$config['wm_x_transp'] = 4;
$config['wm_y_transp'] = 4;
$config['wm_vrt_alignment'] = 'middle';
$config['wm_hor_alignment'] = 'center';
$config['wm_padding'] = '20';

$this->image_lib->initialize($config);
if($this->image_lib->watermark())
echo "yes";
else
echo "No";

When i execute the above code i get the following warnings:
1) imagecolorat(): supplied argument is not a valid Image resource
2) imagecolortransparent(): supplied argument is not a valid Image resource
3) imagecopymerge(): supplied argument is not a valid Image resource

can any one help me to solve the above problem.
#2

[eluser]Référencement Google[/eluser]
Are you sure about the image path?
Also, your extension .jpeg is not common could you try with just a .jpg image extension?




Theme © iAndrew 2016 - Forum software by © MyBB