GD Libarary Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Smiley

    GD Libarary Question

    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?


  • Adam

    #2
    Re: GD Libarary Question

    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.

    Comment

    • punkstar

      #3
      Re: GD Libarary Question

      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.

      Comment

      Working...