I am looking for a way to copy an animated image onto another image using ONLY php. I know it can be done since i have seen it. I am able to create the background image with the width and height that i need, but i am unable to put the existing animated image on top of the BG. Here is what i am working with now....
header ("Content-type: image/gif");
$im = @imagecreatetruecolor($totalwidth, $totalheight)
or die("Cannot Initialize new GD image stream");
$im2 = imagecreatefromgif($eachimg[3]);
$text_color = imagecolorallocate($im, 233, 14, 91);
//imagestring($im, 1, 5, 5, $eachimg[3], $text_color);
imagecopy($im, $im2, 0,0,0,0,53,61);
imagegif($im);
imagedestroy($im);
To make it short, i am attempting to put several animated images side-by-side and make it one image. Gif only to keep the animation.