Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PHP GD Library - Join images

Posted on 2006-11-29
3
Medium Priority
?
1,719 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 1000 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 1000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

879 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