Combining two images

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I use a PHP script as a random image selector.  I would like to add a
small 'footer' image to the bottom of each one at runtime.  I change
the pool of images regularly so it is not something I want to do in
photoshop, rather, I would like to find a way to do this in PHP.

Is there a way to attach two images together in this way so that they
are rendered as a single image?

|  Main Image  |
+ -------------+
| Footer Image |


Re: Combining two images

Use the image commands... got php manual and type image as a search and you  
will find them all !

Andrew Makinson

Quoted text here. Click to load it

Re: Combining two images wrote:

Quoted text here. Click to load it

This requires that you actually modify the JPEG image itself.  To do that,
you have to uncompress the JPEGs, combine the images, and recompress it to

There are command line or scripting solutions for this, but I don't think
you'll want to do it on the fly in PHP.
- Tim Roberts,
  Providenza & Boekelheide, Inc.

Site Timeline