PHP Developers Network
http://forums.devnetwork.net/

PNG Image Creation
http://forums.devnetwork.net/viewtopic.php?f=40&t=113092
Page 1 of 1

Author:  jlauffer [ Fri Feb 19, 2010 7:42 am ]
Post subject:  PNG Image Creation

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.

Author:  greyhoundcode [ Mon Jun 28, 2010 3:19 pm ]
Post subject:  Re: PNG Image Creation

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?

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/