picture upload + watermark
<p>I have the php picture uploading codes and I want to add watermark. </p>

<p>Here is my codes, I really can't figure it out have to add it</p>

<pre><code>&lt;?
        $postpic = $_FILES['picture'];

        $watermarkurl = "http://desmond.imageshack.us/Himg546/scaled.php?server=546&amp;filename=watermarkm.png&amp;res=landing";
        $new_width="400";
        $newname= "test";

        $image_source = imagecreatefromjpeg($postpic["tmp_name"]); 
        $remote_file = "./images/".$newname.".jpg";
        imagejpeg($image_source, $remote_file, 100);
        chmod($remote_file, 0644);
        list($image_width, $image_height) = getimagesize($remote_file);
        $proportions = $image_width / $image_height;
        $new_height = round($new_width / $proportions);
        $new_image = imagecreatetruecolor($new_width, $new_height);
        $image_source = imagecreatefromjpeg($remote_file);
        imagecopyresampled($new_image, $image_source, 0, 0, 0, 0, $new_width, $new_height, $image_width, $image_height); 
        imagejpeg($new_image, $remote_file, 100);
        imagedestroy($new_image);
        imagedestroy($image_source); 
?&gt;
</code></pre>
