Joining Multiple Images into one with a PHP script

前端 未结 2 793
自闭症患者
自闭症患者 2021-01-16 23:13

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

2条回答
  •  隐瞒了意图╮
    2021-01-16 23:46

    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:

    
    

    Note that you will have to increase the size of $image1 to hold all 3 images next to each other.

提交回复
热议问题