Watermarking

You can place an image on another image. You can make the background transparent by using the Magic Wand in Paint.NET.

<?php

$rd=imagecreatefromjpeg('testing.jpg');
$rs=imagecreatefrompng('watermark.png');
imagecopyresized($rd,
                           $rs,
                           0,                   // destination X
                           0,                   // destination Y
                           0,                   // source X
                           0,                   // source Y
                           100,                // destination width
                           100,                // destination height
                           imagesx($rs),  // source width
                           imagesy($rs)); // source height
imagejpeg($rd,'testing8.jpg');

?>