Page 1 of 1

PNG Image Creation

Posted: Fri Feb 19, 2010 6:42 am
by jlauffer
Good morning all,

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.

Re: PNG Image Creation

Posted: Mon Jun 28, 2010 3:19 pm
by greyhoundcode
It should be fairly simple, the functions you are likely to need include ImageCreateFromPNG(), ImageString() and ImagePNG().

As a minimum all you need to do is load your "news graphic", add the relevant string of text and then spit it back out as a PNG (or JPEG or whatever).

Of course, for more polished results, you might want to split up the text according to image width etc.

How far have you got so far?