Page 1 of 1
Join Images by Php
Posted: Thu Jan 31, 2008 5:31 am
by user___
Hi guys,
I need to make from two images one but the second should extend the first. Is that possible with Php? Thanks.
Re: Join Images by Php
Posted: Thu Jan 31, 2008 5:34 am
by Inkyskin
This should be able to be done with GD

Re: Join Images by Php
Posted: Thu Jan 31, 2008 5:53 am
by user___
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
Posted: Thu Jan 31, 2008 7:02 am
by Rovas
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