Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > MacNN Lounge > Question for sonicblue

Question for sonicblue
Thread Tools
foobars
Mac Elite
Join Date: Jan 2001
Location: Somewhere in the land surrouding Fenway Park
Status: Offline
Reply With Quote
Jun 19, 2001, 10:34 AM
 
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 ]
     
mr_sonicblue
Mac Elite
Join Date: Sep 2000
Location: Eagan, MN
Status: Offline
Reply With Quote
Jun 19, 2001, 01:19 PM
 
Thanks

It is being generated on-the-fly with GD and PHP.
     
seanyepez
Addicted to MacNN
Join Date: Dec 1999
Location: Pleasanton, CA
Status: Offline
Reply With Quote
Jun 19, 2001, 03:29 PM
 
Cool!

Do a "Reload Image" and you will see that it's not always the same.
     
Xeo
Moderator Emeritus
Join Date: Mar 2001
Location: Austin, MN, USA
Status: Offline
Reply With Quote
Jun 19, 2001, 03:46 PM
 
There is something called e-mail...

Anywho, it is a pretty cool sig.
     
lucylawless
Mac Elite
Join Date: Feb 2001
Location: adrift in a sea of decadent luxury and meaningless sex
Status: Offline
Reply With Quote
Jun 19, 2001, 04:02 PM
 
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
     
ARENA
Mac Elite
Join Date: Jan 2001
Location: .CL
Status: Offline
Reply With Quote
Jun 23, 2001, 05:00 PM
 
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?
     
mr_sonicblue
Mac Elite
Join Date: Sep 2000
Location: Eagan, MN
Status: Offline
Reply With Quote
Jun 23, 2001, 07:04 PM
 
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
&lt;?
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);
?&gt;</font>

If you can read that, you're set
     
plaidpjs
Senior User
Join Date: Mar 2001
Location: Wethersfield, CT, USA
Status: Offline
Reply With Quote
Jun 23, 2001, 07:39 PM
 
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:

&lt;font face = "courier"&gt;#!/usr/bin/php4 -q
&lt;?
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);
?&gt;&lt;/font&gt;

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 Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 05:46 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,