How To Join 2 Images In Php

Discussion in 'Programming' started by Virtix, Jan 31, 2013.

  1. #1
    Well it is put two pictures in PHP is simple and functional
    How to make a watermark
    Started!


    <?PHP
    header("content-type: image/jpg");
     
    $firsta=imagecreatefromjpeg('yaoo.jpg');#First
    $second=imagecreatefromjpeg('troll.jpg');#Second
    //This creates the two images that use
     
    #An image on the other
    imagecopy($first,$second,300,300,0,0,211,170); //<-- Coordinates
     
    #}...
    imagejpeg($first);
     
    #Destroy both!
    imagedestroy($first);
    imagedestroy($second);
     
     
    ?>
    PHP:
    Done..

    [​IMG]
     
    Virtix, Jan 31, 2013 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    EricBruggema, Feb 2, 2013 IP