Putting images onto other another image based on user input

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
Wardy7
Forum Commoner
Posts: 38
Joined: Wed Aug 24, 2005 4:45 am
Location: UK

Putting images onto other another image based on user input

Post 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
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

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

Post 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
Post Reply