On my provider host according to phpinfo() I've GD version "1.6.2 or higher", but the image modules detect GD2 and by this code it doesn't let me select GD1. I've changed the following code on image.module:
[?
if (function_exists("imageCreateTrueColor")) {
$libraries = array("imagemagick" => "imagemagick", "gd2" => "gd2");
}
else if (function_exists("imageCreate")) {
$libraries = array("imagemagick" => "imagemagick", "gd1" => "gd1");
}
?]
by:
[?
$libraries = array ( "imagemagick" => "imagemagick", "gd1" => "gd1", "gd2" => "gd2" );
?]
And now I can happily select gd1 and it works fine.
I do not know by function_exists ("imageCreateTrueColor") returns true, but the fact is that if I try to use GD2 I get this error when trying to submit an image:
Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /home/html/testing/modules/image.module on line 927
when calling imageCreateTrueColor in this code:
[?
if ($lib == 'gd2') {
$th = imageCreateTrueColor($thx, $thy); // <- line 927
imageCopyResampled($th, $im, 0, 0, 0, 0, $thx, $thy, $image_details['width'], $image_details['height']);
}
?]
inside function _image_make_thumbnail.
(please note that my line 927 could be different than the regular image.module one because I've modified some code and added some comments while debugging)