Current location: Hot Scripts Forums » Programming Languages » PHP » PHP Script to Insert Dynamic Txet into Jpg image

PHP Script to Insert Dynamic Txet into Jpg image

Reply
  #1 (permalink)  
Old 01-25-05, 06:45 PM
cyborlink cyborlink is offline
New Member
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question PHP Script to Insert Dynamic Txet into Jpg image

I just received a request form a customer about creating an input form that allows website visitors to place text (via form input) into a dynamic JPG image. I've not seen this PHP script functionality before and am not even sure what to call it in order to do an effective search.

The Website where they saw this is churchsigngenerator.com. When you click on the sign image on the left it brings up 4 form boxes where text can be inserted. Then hit the GO button and the text is now in placed in the JPG sign image. Really neat.

Any input on this functionality is very much appreciated - Thanks
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 01-25-05, 09:14 PM
CrAzY_CuStoMs CrAzY_CuStoMs is offline
Newbie Coder
 
Join Date: Oct 2004
Location: Ontario, Canada
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
#1- you have to enable the GD/2 Library In your php.ini file... other wize.. any function you try to call that uses the gd library will return an error.

#2- It is rather simple.. ill like you to a site for an example but it can be easily modified to do what you want... http://www.acecoolco.com
go to tutorials > PHP > GD
then it will be listed there
(yea i beat ya to your own site acecool )

you can even go here for MORE (alot more) about GD
http://ca.php.net/manual/en/ref.image.php

if you need help, you can contact me using AIM or MSN using my contact info below.
__________________
CuStoM PHP scripts for cheep =D Contact me anyways you need for all your php needs
AIM- Tallgeesegw3
ICQ- 206498877
MSN- silver_suicide_rider@hotmail.com
YIM- comming soon
IRC- server- irc.chat-solutions.org
channel- Crazy_customs

Last edited by CrAzY_CuStoMs; 01-25-05 at 09:18 PM.
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 05-04-05, 09:11 PM
kieranmullen kieranmullen is offline
New Member
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
I think this is the script you are talking about

http://www.acecoolco.com/view_tutorial/43.php

I saved the jpg as PNG (although I would prefer jpg as the input and output) also marked script and the folder it was in as 777 for execture and write but alas I got an error...


Has anyone else been able to get this t work or does anyone have another solution?
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 05-05-05, 06:26 AM
Acecool's Avatar
Acecool Acecool is offline
Aspiring Coder
 
Join Date: Nov 2003
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
To "save" the image outputted via the GD functions:

Instead of:
ImagePng ($TheImage);

Use:
imagepng($New_Image, 'Filename.png');
imagejpeg($New_Image, 'Filename.jpg');
imagegif($New_Image, 'Filename.gif');

Of course, the directory has to be CHModded 0777 - you can do this as it is happening, or have it static.
__________________
Check Acecoolco.com for PHP Tutorials, and other tuts
If you plan on contacting me, please read this: Legal Terms & Conditions
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
In need of a simple PHP image gallery script.. 6pt7 Script Requests 2 08-30-09 10:21 AM
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 11:17 AM
Outsourcing web design to Bulgaria - Marin Todorov gal_flower Job Offers & Assistance 4 02-14-06 09:05 PM
PHP - script for dynamic daily text...HELP! fpardi PHP 3 10-13-03 04:02 AM


All times are GMT -5. The time now is 10:34 AM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.