| | How can i create images (using php) of 128x128 by giving some types of background... and users can write text on the background... QUOTE you can take example from the followinbg site: http://zedge.no/?side=navnelogo |
|
|
not everyone is good at flash as you are
first you would need to know php then you can use gd to make images with php i have a script that does something like that ill post it if i can find it QUOTE(Raptrex @ Jun 23 2005, 10:15 PM) then you can use gd to make images with php Just make sure that GD-support is enabled in the PHP you're using (it usually is, but you can always try a call to phpinfo()). Here's a small example that does what the OP is asking for: CODE <?php if (isset($_REQUEST['img'])) { header("Content-type: image/png"); $image = imageCreateFromPng("background.png"); $black = imageColorAllocate($image, 0, 0, 0); imageString($image, 5, 10, 10, $_REQUEST['img'], $black); imagePng($image); imageDestroy($image); exit; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Add text to image</title> </head> <body> <form action="<?=$_SERVER['PHP_SELF']?>" method="post"> Text: <input name="text" type="text" value="<?=$_REQUEST['text']?>"> <input type="submit" value="OK"> </form> <br> <img src="<?=$_SERVER['PHP_SELF']?>?img=<?=$_REQUEST['text']?>"> </body> </html> save the above somewhere your webserver can find it and place a png image called background.png in the same directory. For more information and examples check http://php.net/manual/en/ref.image.php
Similar Topics
Keywords : create, images
(2) Can someone please have a look at the following code, this uploads an image, and make it in 2 sizes, Using Php? (20) I'm learning php in class right now, but I'm still not that good at it, what I'm (2) Just wondering if anyone's worked with securing images to avoid direct linking than just by (5) Say you have this script that makes an image, and you want to include it in another page. Would you images as a result? (1) I made a vote poll script, and it work fine with results in numers or %, but i want to show images (1) I've got a script that generates a graph by creating it as a .png file (I can't output the Looking for create, images
|
|
![]() How To Create Images? |
| ADD REPLY / Got an Opinion! | Remove these ADs! | RAPID SEARCH! | Free Web Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute more info. to help others. Ask your Doubts & Queries to get answers, So that "Together We can help others!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|