Is there a way to place an image on the top of an other to produce one image?
I think he meant to 'merge/combine' the images, not to position them over each other.
Bobby
2010-09-24 11:57:31
GD is a php library for manipulating images. I think the topic of the question is about merging images
Brendan Bullen
2010-09-24 11:57:31
-1. Images do have something to do with PHP. Note that he tagged the qustion 'gd', meaning he wants to use the gd library to manipulate images in his PHP code... Perhaps he wants to add a watermark or something? Its a legitimate question, and it can be done.
Spudley
2010-09-24 11:58:15
you almost scared me with the first answer! anyway thanks
Yassir
2010-09-24 11:58:39
you almost scared me with the first question
Col. Shrapnel
2010-09-24 11:59:47
A:
If you can get away with overlaying the images in your HTML, then just use CSS to position two <img>
tags on top of each other; the transparent (or semi-transparent) areas of the one on top will let the one behind show through. Easy.
However, if you actually want to output a single merged image (as your use of the 'gd' tag suggests), yes it can be done. You will need to write some code, of course!
Here is a link to pages which discusses how to do it. (there's quite a bit of discussion there, so it's easier to link to it than try to summarise it myself)
Spudley
2010-09-24 12:04:35