By UGlee on
I downloaded image module and installed it on my web site. But it cannot work without imagemagick/gd support, even thought I dont need the thumbnail and image processing function. I contacted with tech support of my web hoster. They refuse to install imagemagick or gd for me. However they said their php system (php/apache/freeBSD) support GD library, they said I need not a standalone executable converter file to fulfil the task. Now I am fully confused. Is there any way that I can use image module without a converter.exe ? How ?
Comments
Well, I changed the setting t
Well, I changed the setting to use GD2 instead of imagemagick. It seems that the convert.exe file path is not needed anymore. But I got another problem. When I upload img files, I got error message: "Fatal error: Call to undefined function: imagecreatefrom() in /z2/uglee/public_html/modules/image.module on line 926" or "Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /z2/uglee/public_html/modules/image.module on line 935
". Do they mean that GD version on my web hosting server is too low?
Need GD2 or Imagemagick
You need either a) Imagemagick (whose worker function is "convert" -- the .exe is only on Windows) or b) a version of PHP with GD2 installed.
So, since you definitely don't have GD2 from the error messages, ask your host what the path is to Imagemagick's convert function. If you have command line access, you can try typing "which convert" (although that might not work if you are in a virtual environment).
--
Boris Mann
image.module supports GD 1.x and GD2.x
image.module for 4.2.0 and cvs version of Drupal both supports GD version 2.x and also version 1.x (I have added support for the later, because my host only supports GD 1.x for the moment). So it should work for you.
Check with a phpinfo() that GD library is installed. phpinfo() will also tell you which version. Then in Site Configuration->Modules->Image, make sure that you have selected GD1.
Bruno
and for 4.3?
I've tested both the 4.3 image module and the cvs version with identical results. In the drop down combo box to select the Image library on 4.3 I only have two possible values: Imagemagick and GD2. phpinfo() reports that my virtual server has installed GD 1.6 or above. Selecting GD2 seems to be right in administration pages, but when I try to submit an image I obtain an error:
Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /home/html/testing/modules/image.module on line 936same problem
I am having kinda the same problem. PHP 4.2.3 & GD 1.6:
warning: imagecreatetruecolor(): requires GD 2.0 or later in /usr/local/apache/htdocs/modules/image.module on line 925.
warning: imagecopyresampled(): requires GD 2.0 or later in /usr/local/apache/htdocs/modules/image.module on line 926.
warning: imagejpeg(): supplied argument is not a valid Image resource in /usr/local/apache/htdocs/modules/image.module on line 939.
Cannot save image.
I can view the uploaded image (no thumbnails though) when I preview the post, but when I submit it it tells me this and the image cannot be viewed any more.