hello,
well i have a problem but first of all i have to warn u that i'm a complete n00b with php.. just started to learn it
so, i want to overlay a png img over a jpg img.. u can see the two source images here
http://philcam.de/cam/cam.jpg
and
http://philcam.de/cam/overlay.png
the little script i'm using looks like that
<?php
// create the image resource identifers
$img1 = ImageCreateFromJPEG("cam.jpg");
$img2 = ImageCreateFromPNG("overlay.png");
// merge the images, using a 50% opacity in the overlay
ImageCopyMerge($img1, $img2, 0, 0, 0, 0, 320, 240, 70);
// write the new image to browser
header("content-type: image/jpeg");
ImageJPEG($img1);
// destroy the image identifiers
ImageDestroy($img1);
ImageDestroy($img2);
?>
but the result is this
http://philcam.de/cam/cam.php
the overlayer colors are destroyed.. i dunno what happened there, maybe somebody from the forum can help me?