gd library

Kendric Beachey ak at kc.rr.com
Fri Jun 7 03:40:53 CDT 2002


On Thursday, 6 June 2002 06:47, Chris Wyckoff wrote:
> Hi all,
>
>     I'm a PHP developer and am working on a project that requires
> dynamically created bar graphs.  The sysadmin for the web hosting company
> my client is using (media3.com) installed the gd library on our web server,
> but when I try to run a test script that will produce a simply PNG image I
> receive an error message which claims that the gd does not support PNG
> files.  The sysadmin doesn't seem to know what to do.
>
>     Can anyone offer some advice.  I think I remember learning that zlib
> and libpng also have to be compiled with the gd.

I'm sure libpng is needed, but it sounds like maybe you have an old version 
of GD.  We use 1.84 (?) at my work, and PNGs are all we're having it do.  And 
that was because GD quit supporting GIF, which is what the (rather old) code 
in question had wanted to do until we had to port it to Linux.

Anyway, that's not even the newest version of GD.  2.x is out now.

-- 
Kendric Beachey
ak at kc.rr.com

DVD decryption in seven lines of Perl code:
$_='while(read+STDIN,$_,2048){$a=29;$b=73;$c=142;$t=255;@t=map{$_%16or$t^=$c^=( 
$m=(11,10,116,100,11,122,20,100)[$_/16%8])&110;$t^=(72, at z=(64,72,$a^=12*($_%16 
-2?0:$m&17)),$b^=$_%64?12:0, at z)[$_%8]}(16..271);if((@a=unx"C*",$_)[20]&48){$h 
=5;$_=unxb24,join"", at b=map{xB8,unxb8,chr($_^$a[--$h+84])}@ARGV;s/...$/1$&/;$ 
d=unxV,xb25,$_;$e=256|(ord$b[4])<<9|ord$b[3];$d=$d8^($f=$t&($d12^$d4^ 
$d^$d/8))<<17,$e=$e8^($t&($g=($q=$e14&7^$e)^$q*8^$q<<6))<<9,$_=$t[$_]^ 
(($h=8)+=$f+(~$g&$t))for at a[128..$#a]}print+x"C*", at a}';s/x/pack+/g;eval




More information about the Kclug mailing list