Current location: Hot Scripts Forums » Programming Languages » PHP » Print text onto an image

Print text onto an image

Reply
  #1 (permalink)  
Old 11-14-03, 04:10 PM
perleo perleo is offline
Coding Addict
 
Join Date: Jul 2003
Location: Ireland
Posts: 269
Thanks: 0
Thanked 0 Times in 0 Posts
Print text onto an image

Okay, i have a .png image

i have four variables with text in them
$name = "Joe";
$address = "USA";
$email = "joe@me.com";
$url = "www.me.com";

Can someone show me how to print the text onto the image???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-14-03, 05:38 PM
evo4ever evo4ever is offline
Software Developer Guru
 
Join Date: Aug 2003
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
In what way do u want the text written on it? Physically into the image or over it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-15-03, 07:22 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,250
Thanks: 0
Thanked 0 Times in 0 Posts
this is long story ..
you need to use GD lib to play with images ....
take a look here , because the options are too many and you can choose which one fits your needs :
http://ar.php.net/manual/en/ref.image.php
__________________
We don't need a reason to help people - Zidane [FF9]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-15-03, 07:44 AM
perleo perleo is offline
Coding Addict
 
Join Date: Jul 2003
Location: Ireland
Posts: 269
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by evo4ever
In what way do u want the text written on it? Physically into the image or over it?
Physically into the image.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 11-15-03, 10:23 AM
evo4ever evo4ever is offline
Software Developer Guru
 
Join Date: Aug 2003
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Then as NeverMind said, you need to familiarize yourself with the GD Library Extension. Make sure your host supports GD because PHP doesnt come with it as standard.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 11-15-03, 10:49 AM
perleo perleo is offline
Coding Addict
 
Join Date: Jul 2003
Location: Ireland
Posts: 269
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by evo4ever
Then as NeverMind said, you need to familiarize yourself with the GD Library Extension. Make sure your host supports GD because PHP doesnt come with it as standard.
but what function do I use,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 11-16-03, 06:53 AM
Stefan's Avatar
Stefan Stefan is offline
Junior Code Guru
 
Join Date: Jun 2003
Location: Utrecht, The Netherlands
Posts: 599
Thanks: 0
Thanked 0 Times in 0 Posts
more than one. try looking around the web for classes or functions that make this easier. there are definately a lot of scripts around that give you an easy interface to building your own images on the fly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 11-16-03, 03:10 PM
perleo perleo is offline
Coding Addict
 
Join Date: Jul 2003
Location: Ireland
Posts: 269
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Stefan
more than one. try looking around the web for classes or functions that make this easier. there are definately a lot of scripts around that give you an easy interface to building your own images on the fly.
Thanks, i'll look around
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a simple image with info text script (I can even pay you for this) nezbie Script Requests 2 04-05-04 09:47 AM
picking random entries with a filter... Double selection problem dsumpter PHP 7 11-16-03 07:19 PM
New to perl, could use some help Arowana Perl 4 10-24-03 10:49 AM
[Tutorial] Hello World Antitrust PHP 10 10-14-03 01:27 PM
displaying all duplicate records in my table. dsumpter PHP 6 09-02-03 10:54 AM


All times are GMT -5. The time now is 06:39 AM.
vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.