<?php $im_a = @imagecreatefrompng("images/Water lilies.png"); //$im_b = @imagecreatefrompng("images/SunsetEDIT.png"); $im_b_x = 10; $im_b_y = 10; $im_b = imagecolorallocatealpha($im_a, 0, 0, 0, 50); imagefilledrectangle($im_a, 0, 0, 100, 100 , $im_b); //$im_c = imagecolorallocatealpha($im_a, 255, 0, 0, 50); //imagefilledrectangle($im_a, 0, 0, 200, 200 , $im_c); header("Content-type: image/png"); imagepng($im_a); ?> -------------------------------------------------------------------------------------------- <?php $adImage = ImageCreateFromJPEG('images/Water lilies.jpg'); ImageAlphaBlending($adImage, true); $photoImage = ImageCreateFromJPEG('images/top.jpg'); //$photoImage = imagecolorallocatealpha($adImage, 0, 255, 0, 50); $logoW = ImageSX($photoImage); $logoH = ImageSY($photoImage); ImageCopy($adImage, $photoImage, 0, 0, 0, 0, $logoW, $logoH); //output to browser ImageJPEG($adImage); ImageDestroy($adImage); ImageDestroy($photoImage); ?> -------------------------------------------------------------------------------------------- Both have different output: First one, it has alpha but its a drawn rectangle. Second one, has photo overlap but not alpha. The output i hope to get is the combining of both - photo that is being alpha. thanks!!!