this was what i ended up with....
<?php
header ("Content-type: image/jpeg");
header ("Content-type: image/png");
header ("Content-type: image/gif");
$im = @imagecreatefromjpeg ("main.jpg")
or die ("Cannot Initialize new GD image stream");
//$im2 = @imagecreatefromjpeg ("logo.jpg")
// or die ("Cannot Initialize new GD image stream");
$im2 = @imagecreatefrompng ("logo.png")
or die ("Cannot Initialize new GD image stream");
$im_width = imagesx($im);
$im_height = imagesy($im);
$im2_width = imagesx($im2);
$im2_height = imagesy($im2);
//Note that you can make colors in a picture transparent, eg.:
//here we make the color white(ff ff ff or 255 255 255) transparent.
//*********************
$transColor = imagecolorallocate($im2, 18, 75, 39);
imagecolortransparent($im2, $transColor);
//*********************
imagecopy ($im, $im2, $im_width - $im2_width, $im_height - $im2_height, 0, 0, $im2_width, $im2_height);
//imagecopymerge ($im, $im2, $im_width - $im2_width, $im_height - $im2_height, 0, 0, $im2_width, $im2_height, 55);
imagejpeg ($im);
imagedestroy ($im);
?>
my problem for the moment is resolved.
C U guys later. 🆒