Solved

PHP GD Library - Join images

Posted on 2006-11-29
3
1,714 Views
Last Modified: 2009-10-11
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
0
Comment
Question by:pD_EO
3 Comments
 

Accepted Solution

by:
Dutchy_ earned 250 total points
ID: 18038258
Yes this is very well possible

I think you will find most of it, if not all of what you want to do in this tutorial:

http://www.nyphp.org/content/presentations/GDintro/

and take a look at the gd functions
http://php.net/gd

I think you're especially looking for the imagecreate and imagecopy functions in that list
0
 
LVL 14

Assisted Solution

by:Aamir Saeed
Aamir Saeed earned 250 total points
ID: 18040797
Of course it is. imagecreatetruecolor() to make the canvas, then imagecreatefromjpeg() to load images and imagecopy() to copy them onto the canvas.
BOL!
0
 
LVL 6

Author Comment

by:pD_EO
ID: 18041235
Thanks guys
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question