Hi,
I'm trying to merge a picture onto another picture and make certain colors transparent.
Right now I can effectively make one color transparent, but is there a way to do more than one?
My top picture has a blue background, but around the outlines the pic is lighter blue, so I want to fade all forms of blue.
Currently I have:
$blue = ImageColorAllocate ($dst_img, 0, 0, 255);
// Coordinates to put stamp onto full picture
$x = $dest_width - 280;
$y = $dest_height - 40;
$stamp_img = imagecreatefrompng ("../photos/dma-mark.png");
imagecolortransparent ($stamp_img, $blue);
imagecopymerge ($dst_img,$stamp_img,$x,$y,0,0,276,37,100);
But I'd also like to make these colors transparent
$blue2 = ImageColorAllocate ($dst_img, 153, 153, 255);
$blue3 = ImageColorAllocate ($dst_img, 51, 51, 255);
$blue4 = ImageColorAllocate ($dst_img, 102, 102, 255);
Any ideas?
Thanks a lot!
Derek