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 joi
Your script is merging the images on top of each other (see the manual for imagecopymerge). The parameters $dst_x
and $dst_y
control where to place the source image on the merged canvas.
You need to specify the offset from the previous image to merge them:
$offset2x = imagesx($image1);
imageCopyMerge($image1, $image2, $offset2x, 0, 0, 0, 96, 96, 100);
$offset3x = $offset2x + imagesx($image2);
imageCopyMerge($image1, $image3, $offset3x, 0, 0, 0, 96, 96, 80);
?>
Note that you will have to increase the size of $image1
to hold all 3 images next to each other.