I have this test page http://thechozenfew.net/projects/write_font.php that generates the text in the input box as a font. Each letter is a different picture, How would i join all these pictures into one image with a php script?
This what i've tried so far but the images appear on top of each other.
Header ("Content-type: image/gif");
$image1Url = "../images/avatar.png";
$image2Url = "../images/key.png";
$image3Url = "../images/safari.png";
$image1 = imageCreateFromPNG($image1Url);
$image2 = imageCreateFromPNG($image2Url);
$image3 = imageCreateFromPNG($image3Url);
$colorTransparent = imagecolorat($image1, 0, 0);
imageColorTransparent ($image1, $colorTransparent);
$colorTransparent = imagecolorat($image2, 0, 0);
imageColorTransparent ($image2, $colorTransparent);
$colorTransparent = imagecolorat($image3, 0, 0);
imageColorTransparent ($image3, $colorTransparent);
imageCopyMerge($image1, $image2, 0, 0, 0, 0, 96, 96, 100);
imageCopyMerge($image1, $image3, 0, 0, 0, 0, 96, 96, 80);
ImagePng ($image1);
ImageDestroy ($image1);
ImageDestroy ($image2);