Page 1 of 1

PHP GD Library - Join images

Posted: Wed Nov 29, 2006 7:55 am
by amir
Hey,

Is it possible to create a blank image of any size, and then import images and place them onto that image to generate 1 image?

So...

GD creates the canvas (blank image), I then can specify images for GD to use that can be placed onto that image. So at the end, the final result will be just 1 image.

Been trying various things, but nothing works.

Thanks

Posted: Wed Nov 29, 2006 8:14 am
by onion2k
Of course it is. imagecreatetruecolor() to make the canvas, then imagecreatefromjpeg() to load images and imagecopy() to copy them onto the canvas. Easy.