Closed (fixed)
Project:
CAPTCHA
Version:
7.x-1.0-alpha3
Component:
Image Captcha (image_captcha)
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
10 Nov 2011 at 08:55 UTC
Updated:
4 Dec 2011 at 11:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
soxofaan commentedHello,
the check whether the GD library is available is (image_captcha.module around line 163)
can you see whether this returns true or false on your setup?
Comment #2
soxofaan commented(sorry wrong category)
Comment #3
pdeclarens commentedHi,
Thanks for your help.
This is what I find at line 163:
if (!function_exists('imagejpeg')) {
$status = $status | IMAGE_CAPTCHA_ERROR_NO_GDLIB;
}
Sorry but I do not know where and how I have to insert the code lines you suggest to test the GD library...
Comment #4
soxofaan commentedI misread this apparently the first time: you need the GD library (http://www.php.net/manual/en/book.image.php)
the GLIBC library is something totally different (http://www.gnu.org/s/libc/) .
If you check the status report of you website, you should have entries about the GD library (see attached screenshot)
Comment #5
pdeclarens commentedHello,
Thanks for your help
This is what I find in the report:
OK
Prise en charge du format PNG par la bibliothèque GD bundled (2.0.34 compatible)
Does this help ti find out what is wrong?
rgds
Comment #6
soxofaan commentedif you change that line 163 from
to
do things work correctly then?
Comment #7
pdeclarens commentedhello,
I made the suggested modification and changes the image format to png.
It works !
great many thanks !
Comment #8
soxofaan commentedok, thanks for testing
committed to D6 and D7 versions:
http://drupalcode.org/project/captcha.git/commit/3d3e759
http://drupalcode.org/project/captcha.git/commit/e514b60