Hi i write a code for uploading images and re-size it in my site. I need to do a watermark in uploaded images. Please help me..
The code is as follows :
$finalfilename="share/".$final_file;
$src = $po($finalfilename);
list($width,$height)=getimagesize($finalfilename);
$newwidth=300;
$newheight=200;
$tmp=imagecreatetruecolor($newwidth,$newheight);
imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);
$filename = "share/".$final_file;
imagejpeg($tmp,$filename,100);
imagedestroy($src);
imagedestroy($tmp);
Please help me
Rajeesh