Page 1 of 1

Putting images onto other another image based on user input

Posted: Mon May 10, 2010 5:07 am
by Wardy7
I am after a bit of help if possible guys, I'm unsure if this should be inthe PHP section or somewhere else, but as I'd choose PHP by default I felt best to stick it in here!
I am wanting to create a new part of my site that will allow users to have their name (or the words they choose) spelt out in images.

What I will have is a range of images covering each letter in the alphabet and I want these to be put onto an image that I have for a background to them.
So if "Billy" wants his name put onto the background, each of the images of the 5 characters in Billys name will be put over the background image (basically to make a personalised background)
I think this should make sence?! :)

I'm just at a loss as to where to start so any help would be greatly appreciated.

Cheers
Wardy

Re: Putting images onto other another image based on user in

Posted: Mon May 10, 2010 8:00 am
by alex.barylski
You could use GD and PNG/GIF images as overlays.

The easiest way, would probably use a sing image with all the letters set at 20px wide and high then use CSS to position the image within a container div that is also 20x20 ox so only the appropriate letter shows. No PHP required!

Cheers,
Alex