--- ./src/jpgraph.php 2002-03-01 01:46:17.000000000 +0100 +++ jpgraph_dassault/src/jpgraph.php 2004-12-02 11:58:49.000000000 +0100 @@ -14,6 +14,8 @@ // Get all directory paths include ( "jpgraph_dir.php" ); +DEFINE("USE_GD2", false); + // What group should the cached file belong to // (Set to "" will give the default group for the "PHP-user") // Please note that the Apache user must be a member of the @@ -38,7 +40,7 @@ // false will still create the image in the cache directory // just not use it. By setting USE_CACHE=false no files will even // be generated in the cache directory. -DEFINE("USE_CACHE",true); +DEFINE("USE_CACHE",false); // If the color palette is full should JpGraph try to allocate // the closest match? If you plan on using background image or @@ -250,7 +252,7 @@ // // Check what version of the GD library is being used // -if(function_exists('imagecopyresampled') ) { +if(function_exists('imagecopyresampled') && USE_GD2) { $gd2 = true; $copyfunc = "imagecopyresampled"; } elseif(function_exists('imagecopyresized')) {