custom image generator
-
- Posts: 78
- Joined: Sun Feb 26, 2006 4:21 pm
custom image generator
how can i make an image with variable content? like, for example, have a picture of a taco and say the viewer's IP on it. just as an example...
how could i do it? oh and it needs to be custom.. so there should be an input where the user can put in their name... can anybody help me?
how could i do it? oh and it needs to be custom.. so there should be an input where the user can put in their name... can anybody help me?
Visit derangedtaco.com, a developing online community.
Well, use Image Functions (requires a library called GD; to check if your server has it installed use phpinfo(); )
Before:

After:

Code: Select all
<?php
header("Content-type: image/png");
$image = @imagecreatefromjpeg('taco.jpg');
$color = ****($image, 0, 0, 255);
imagestring($image, 5, 20, 80, 'Hey, your IP address is:' , $color);
imagestring($image, 5, 80, 140, $_SERVER['REMOTE_ADDR'] , $color);
imagepng($image);
imagedestroy($image);
?>

After:

Code: Select all
define('I_LOVE_PHP', true);
-
- Posts: 78
- Joined: Sun Feb 26, 2006 4:21 pm
hey, wow. i didnt think anyone was going to help me out. thanks!!!
now, can anybody help me out with this?? i need a blank diploma-like thing.. for papapotato.com. you'll enter in your name to convert, then it'll have your name on the certificate afterwards :lol:
now, can anybody help me out with this?? i need a blank diploma-like thing.. for papapotato.com. you'll enter in your name to convert, then it'll have your name on the certificate afterwards :lol:
Visit derangedtaco.com, a developing online community.
Oh, sure.
Give me your layout and the fonts you want to use... I think I can code the script
I just need a template; the place where the variables are going to be printed should be obviously blank...
Give me your layout and the fonts you want to use... I think I can code the script

I just need a template; the place where the variables are going to be printed should be obviously blank...
Code: Select all
define('I_LOVE_PHP', true);
OK, found some Google'd some images... What resulted in:


You can change it's name... Is this your idea?


You can change it's name... Is this your idea?
Code: Select all
define('I_LOVE_PHP', true);
-
- Posts: 987
- Joined: Sun Feb 26, 2006 4:56 pm
- Contact:
-
- Posts: 78
- Joined: Sun Feb 26, 2006 4:21 pm
The top (where it says "Php University") one is Grafik Text, the handwriting cursive one is AdineKinberg-Script, and the other is Blackletter686 BT.
They are all free fonts AFAIK so you should be able to download them.
They are all free fonts AFAIK so you should be able to download them.
Code: Select all
define('I_LOVE_PHP', true);
-
- Posts: 78
- Joined: Sun Feb 26, 2006 4:21 pm
looks like you have to pay for blacklettermohumben wrote:The top (where it says "Php University") one is Grafik Text, the handwriting cursive one is AdineKinberg-Script, and the other is Blackletter686 BT.
They are all free fonts AFAIK so you should be able to download them.
http://www.myfonts.com/PurchaseOptions?id[]=1031
or is it something else you're talking about? a free "clone" maybe?
Visit derangedtaco.com, a developing online community.
-
- Posts: 78
- Joined: Sun Feb 26, 2006 4:21 pm
any help...?
also...... just another quickie question
http://papapotato.com/index.php?option= ... &Itemid=43
the border around the "convert now" image... how can i kill that? it's in the css, right?
also...... just another quickie question
http://papapotato.com/index.php?option= ... &Itemid=43
the border around the "convert now" image... how can i kill that? it's in the css, right?
Visit derangedtaco.com, a developing online community.