PLEASE RELOAD
Sig Comp Step-by-Step



Step Two
Now let's composite some gifs on it. We'll blend the images, so we create the image to comp. It checks the size of the image and you tell the server where to position it. As with Image Magick, 0x0 is upper left. The first number in Imagecopy is the X the second is the Y. The third and forth numbers will give you a drop shadow of how many pixels you specify.


//COMPOSITE IMPORT CASTLE

ImageAlphaBlending($im, true);

$logo = ImageCreateFromGif('http://www.simplysally.com/GD/work/tiles/comps/castle2.gif');

$logoW = ImageSX($logo);

$logoH = ImageSY($logo);

// POSITION COMPOSITE.

ImageCopy($im, $logo, 250, 180, 0, 0, $logoW, $logoH);


Here is the complete code. Transload/upload the page to your server, copy and change txt to php. View it. You'll see my chosen gif. Now go get your gifs to composite. Bring several, and to do more than one just add that chunk of code again right under the first and add a new URL and new position numbers.

Lounge with comp



Page Three


GD BasicsHome