Hi guys,
I need to make from two images one but the second should extend the first. Is that possible with Php? Thanks.
Join Images by Php
Moderator: General Moderators
Re: Join Images by Php
This should be able to be done with GD 
Re: Join Images by Php
Well, I have checked its documentation but there is not a method to join to images and make one bigger. I mean that I have not found out how to out one image after another. For example if I have an image which is ten pixels height and I want to combine it with another whoose height is thirty to make an image of those which is fourty pixels height.
Re: Join Images by Php
First there is a GD section on this forum.
Second you make a third image that serves as a canvas for the 2 images the use twice imagecopymerge to put the images on the canvas. Why two times because first operation will be canvas image + first image second operation the resulting image + second image. Watch out for the correct dimensions of the canvas
Second you make a third image that serves as a canvas for the 2 images the use twice imagecopymerge to put the images on the canvas. Why two times because first operation will be canvas image + first image second operation the resulting image + second image. Watch out for the correct dimensions of the canvas