PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Dec 22, 2014 12:43 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: PNG Image Creation
PostPosted: Fri Feb 19, 2010 7:42 am 
Offline
Forum Newbie

Joined: Fri Feb 19, 2010 7:37 am
Posts: 1
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.


Top
 Profile  
 
 Post subject: Re: PNG Image Creation
PostPosted: Mon Jun 28, 2010 3:19 pm 
Offline
Forum Regular
User avatar

Joined: Mon Feb 11, 2008 5:22 am
Posts: 611
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group