View Single Post
Old 11-26-2003, 07:58 PM  
icedemon
Confirmed User
 
Join Date: Jun 2003
Location: Lutz, FL
Posts: 1,022
You can find out about GD here
http://www.boutell.com/gd/
If your doing what notjoe was talking about, GD would be way better to make pics with in the program. Here is what I do in Perl.

Code:
#!/usr/bin/perl

use CGI;
use GD;
use String::CRC32;

# create a new image
$q = CGI->new();
$im = GD::Image->new(100,15);
$crc = crc32($q->remote_host());

# allocate some colors
$bg = $im->colorAllocate(96,128,160);
$white = $im->colorAllocate(255,255,255);

$im->transparent($bg);
$im->interlaced('true');
$im->string(gdGiantFont,0,0,$crc,$white);

print $q->header(-type=>'image/jpeg');
print $im->jpeg();
__________________
Clips4Sale.com
icedemon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote