Solved

PHP GD Library - Join images

Posted on 2006-11-29
3
1,710 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks guys
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now