...

View Full Version : Display two images with gd



alexpk
12-08-2010, 01:16 PM
Hello, we have:


header("Content-type: image/png");
$msg = "Hello world.";
$pic = imageCreateFromPNG("http://mypic");
$color = ImageColorAllocate ($pic, 255, 255, 255);
ImageString ($pic, 3, 140, 22, $msg, $color);
ImagePNG($pic);
ImageDestroy($pic);

I want to include another image in this image.How can I do that?
I can't include,readfile, html <img src.. what about other way?

mlseim
12-08-2010, 01:21 PM
Will the other image simply be placed over part of the original image, like a watermark?

Or, do the two have to merge, such as transparency colors and such?

alexpk
12-08-2010, 01:23 PM
More like watermark.

mlseim
12-08-2010, 01:26 PM
http://www.google.com/search?q=php+gd+png+watermark

alexpk
12-08-2010, 02:01 PM
Thanks. :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum