[Imc-tech] Re: [Imc-web] problem uploading pix
Zachary C. Miller
zach at chambana.net
Thu Apr 15 18:29:07 CDT 2004
This feels like deja vu. I think we did the exact same fix in a
previous version. Is that correct?
Daniel Lewart wrote:
> 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);
> }
> -------------------------------------------------------------------------------
>
> _______________________________________________
> Imc-web mailing list
> Imc-web at lists.cu.groogroo.com
> http://lists.cu.groogroo.com/cgi-bin/listinfo/imc-web
>
--
Zachary C. Miller - @= - http://wolfgang.groogroo.com/
IMSA 1995 - UIUC 2000 - Just Another Leftist Muppet - Ya Basta!
Social Justice, Community, Nonviolence, Decentralization, Feminism,
Sustainability, Responsibility, Diversity, Democracy, Ecology
More information about the Imc-tech
mailing list