PNG Image Creation

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Forum Newbie
Posts: 1
Joined: Thu Nov 12, 2015 6:30 am

PNG Image Creation

Post by MelvinPerkins »

I have been assigned a job to create a PHP Script that will take a Television News Graphic and add 2 Lines of Text to it. (The things that show the persons name on the bottom of the screen)

I was wondering what kind of GD Script I would need to make a transparent image from text that is supplied in a form, to combine on the graphic and make the finished product.

Please help, this is due very soon and I am clueless. My AIM is Justin34238SRQ if you'd like to IM me there.
User avatar
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PNG Image Creation

Post by requinix »

You don't need to make a transparent image for the text. You just load the original image, lay the text on top of it, then save the result to a new file.

1. Do you have an example of what image you start with and what you want the result to look like?
2. What is your code so far and what kind of problems are you having with it?

It's the weekend so you might not get responses immediately. Wait a few hours. If you waited until now to get help for this and it's down to the wire, well, hopefully you've learned not to let this happen again.
Post Reply