[Imc-tech] Re: [Imc-web] problem uploading pix
Daniel Lewart
lewart at uiuc.edu
Thu Apr 15 14:59:08 CDT 2004
Paul,
> I've been trying in vain to upload some nice pictures of the swanlund
> sit-in, and keep getting this error back:
> Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in
> /extra0/var/www/ucimc/imc_classes/imc_Media.inc on line 1132
Imsahp does have both libgd1 1.8.4 and libgd2 2.0.1.
I guess PHP is too dumb to figure out which one to use.
> Anyone know how to fix this?
Maybe I do. Below is the change I made. Please see if it fixes things.
Good luck!
Dan
http://www.ucimc.org/
-------------------------------------------------------------------------------
$ diff -u imc_classes/imc_Media.inc~ imc_classes/imc_Media.inc | expand -4
--- imc_classes/imc_Media.inc~ Sat Jan 3 21:14:46 2004
+++ imc_classes/imc_Media.inc Thu Apr 15 00:00:00 2004
@@ -1129,7 +1129,7 @@
$d_w = $max_width;
$d_h = round($src_h/$ratio);
if (function_exists('ImageCreateTrueColor')) {
- $dimg = ImageCreateTrueColor($d_w,$d_h);
+ $dimg = ImageCreate($d_w,$d_h);
} else {
$dimg = ImageCreate($d_w,$d_h);
}
-------------------------------------------------------------------------------
More information about the Imc-tech
mailing list