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

I store a hires un watermarked version for people who subscribe, and serve a lower res version with a watermak to unregistered users
the scripts are at http://koivi.com/php-gd-image-watermark/

I store a hires un watermarked version for people who subscribe, and serve a lower res version with a watermak to unregistered users
the scripts are at http://koivi.com/php-gd-image-watermark/

Thankyou very much for your advise

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.