Solved

PHP GD Library - Join images

Posted on 2006-11-29
3
1,716 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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 …

710 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