[Imc-tech] error with pix:

Daniel S. Lewart lewart at uiuc.edu
Tue Jan 20 03:38:11 CST 2004


Sascha, et al,

On Mon, Jan 19, 2004 at 08:31:46PM -0600, Sascha Meinrath wrote:

> here's the error that both mike and i have had:
> Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in
> /extra0/var/www/ucimc/imc_classes/imc_FunctionLibrary.inc on line 1028

I was puzzled because libgd2 is installed.  It turns out to be
a bug in PHP 4.1.2:
  #14724: imagecreatetruecolor() and imagecopyresampled():
	http://bugs.php.net/bug.php?id=14724
  #16002: imagecreatetruecolor not recognizing create version of GD library:
	http://bugs.php.net/bug.php?id=16002

As a temporary workaround, I changed imc_classes/imc_FunctionLibrary.inc
line 1028 from:
	$dimg = ImageCreateTrueColor($d_w,$d_h);
to:
	$dimg = ImageCreate($d_w,$d_h);
Please see if that fixed things.

When Zach upgrades to Debian testing, PHP will be at version 4.3.3,
and then this patch should be undone.

Cheers,
Dan
http://www.ucimc.org/




More information about the Imc-tech mailing list