Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jul 2009
    Posts
    45
    Thanks
    23
    Thanked 0 Times in 0 Posts

    Display two images with gd

    Hello, we have:

    PHP Code:
    header("Content-type: image/png");
    $msg "Hello world.";
    $pic imageCreateFromPNG("http://mypic");
    $color ImageColorAllocate ($pic255255255);
    ImageString ($pic314022$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?

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,525
    Thanks
    8
    Thanked 1,091 Times in 1,082 Posts
    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?

  • #3
    New Coder
    Join Date
    Jul 2009
    Posts
    45
    Thanks
    23
    Thanked 0 Times in 0 Posts
    More like watermark.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,525
    Thanks
    8
    Thanked 1,091 Times in 1,082 Posts

  • Users who have thanked mlseim for this post:

    alexpk (12-08-2010)

  • #5
    New Coder
    Join Date
    Jul 2009
    Posts
    45
    Thanks
    23
    Thanked 0 Times in 0 Posts
    Thanks.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •