This is a discussion on GD Libarary Question within the PHP Language forums, part of the PHP Programming Forums category; I've looked up several documents online to try and figure this out. So far I've seen that with ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I've looked up several documents online to try and figure this out. So far
I've seen that with the GD library I can use a background image and modify it by adding text and shapes. What I would like to do though is create an image from a background image then bring in other smaller images and place them overtop in different locations. In essence I want to create an image from 2 or more already created images. Is that possible? |
|
|||
|
On Fri, 8 Sep 2006 17:32:09 -0400, Smiley wrote:
>I've looked up several documents online to try and figure this out. So far >I've seen that with the GD library I can use a background image and modify >it by adding text and shapes. > >What I would like to do though is create an image from a background image >then bring in other smaller images and place them overtop in different >locations. In essence I want to create an image from 2 or more already >created images. > >Is that possible? Do you need to create a composite image? Can't you do it with just CSS positioning? If you need *transparency* then you may need to use .png format. Adam. |
|
|||
|
You should look at the imagecopy() function. From what you said, you
should be able to use that. I used it before for a client that wanted to make one of them smiley face gens. - Nick Adam wrote: > On Fri, 8 Sep 2006 17:32:09 -0400, Smiley wrote: > > >I've looked up several documents online to try and figure this out. So far > >I've seen that with the GD library I can use a background image and modify > >it by adding text and shapes. > > > >What I would like to do though is create an image from a background image > >then bring in other smaller images and place them overtop in different > >locations. In essence I want to create an image from 2 or more already > >created images. > > > >Is that possible? > > Do you need to create a composite image? Can't you do it with just CSS > positioning? If you need *transparency* then you may need to use .png > format. > > Adam. |