0

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

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by rajeesh_rsn
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.