|
|
Question for sonicblue
|
|
|
|
Mac Elite
Join Date: Jan 2001
Location: Somewhere in the land surrouding Fenway Park
Status:
Offline
|
|
Your signature is sweet. It's the first really great one I've seen. Is it creating that image on the fly or is it just random?
[ 06-19-2001: Message edited by: foobars ]
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2000
Location: Eagan, MN
Status:
Offline
|
|
Thanks
It is being generated on-the-fly with GD and PHP.
|
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Dec 1999
Location: Pleasanton, CA
Status:
Offline
|
|
Cool!
Do a "Reload Image" and you will see that it's not always the same.
|
|
|
|
|
|
|
|
|
Moderator Emeritus
Join Date: Mar 2001
Location: Austin, MN, USA
Status:
Offline
|
|
There is something called e-mail...
Anywho, it is a pretty cool sig.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Feb 2001
Location: adrift in a sea of decadent luxury and meaningless sex
Status:
Offline
|
|
Originally posted by Xeo:
<STRONG>There is something called e-mail...
Anywho, it is a pretty cool sig.</STRONG>
I never noticed that it (his sig) changes before reading this
|
blackmail is such an ugly word. I prefer extortion. the X makes it sound cool
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Jan 2001
Location: .CL
Status:
Offline
|
|
As i once told you, sonicblue, I really like your style...this has to be one of the coolest sigs i�ve seen. minimalistic design rocks!
btw, how do you generate the random image on the fly with PHP?
I dont know anything of PHP...is it hard?
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2000
Location: Eagan, MN
Status:
Offline
|
|
Originally posted by ARENA:
<STRONG>btw, how do you generate the random image on the fly with PHP?
I dont know anything of PHP...is it hard?</STRONG>
PHP has functions for interacting with GD, which interacts with various graphics libraries (libpng, etc). You'd basically have to know C-style and how to call functions to do such in PHP. Here's the actual script that generates my sig:
<font face = "courier">#!/usr/bin/php4 -q
<?
srand((double) microtime() * 1000000);
header("Content-type: image/png\n");
header("Cache-Control: no-cache \n");
header("Expires: Mon, 01 Jan 1990 00:00:00 GMT\n\n");
$im = ImageCreateFromPNG('base.png');
$ovr = ImageCreateFromPNG('pineapple.png');
ImageColorSet($im, 1, 0, 0, 0);
ImageCopy($im, $ovr, 0, 0, 0, rand(0,59), 120, 35);
ImageRectangle($im, 0, 0, 119, 34, 1);
ImagePNG($im);
?></font>
If you can read that, you're set
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Mar 2001
Location: Wethersfield, CT, USA
Status:
Offline
|
|
Originally posted by mr_sonicblue:
<STRONG>
PHP has functions for interacting with GD, which interacts with various graphics libraries (libpng, etc). You'd basically have to know C-style and how to call functions to do such in PHP. Here's the actual script that generates my sig:
<font face = "courier">#!/usr/bin/php4 -q
<?
srand((double) microtime() * 1000000);
header("Content-type: image/png\n");
header("Cache-Control: no-cache \n");
header("Expires: Mon, 01 Jan 1990 00:00:00 GMT\n\n");
$im = ImageCreateFromPNG('base.png');
$ovr = ImageCreateFromPNG('pineapple.png');
ImageColorSet($im, 1, 0, 0, 0);
ImageCopy($im, $ovr, 0, 0, 0, rand(0,59), 120, 35);
ImageRectangle($im, 0, 0, 119, 34, 1);
ImagePNG($im);
?></font>
If you can read that, you're set </STRONG>
Uhm, okay, I get the PHP parts, but I'm not sure I understand what the calls are doing. Is that actually referencing GD (I have never used GD). Also, are you serving that sig off your own server?
|
G4/533 DP, 768 MB RAM, 40GB HDD, 32MB GeForce2 MX, 30GB VST Firewire Drive, and an Apple Cinema Display.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|