Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#181298 - 03/22/0711:07 AMRe: Captcha with GD2
[Re: Sagar]
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
In order to use GD2, PHP will also need to support freetype, as these two work together. If you're on a hosted server you can see if your host can enable this. The other option is to use ImageMagick. If you have ssh access to the server, you can install this yourself, even if you don't have root access.
Rick, Free Type is already enabled. I am already using GD w/o issues for Gallery and VBulletin.
Here are the GD info:
GD Support enabled GD Version bundled (2.0.28 compatible) FreeType Support enabled FreeType Linkage with TTF library GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
You actually need GD2 and FreeType, they normally come bundled as one, you can also see that information via your php.info
Hope that helps.
I didn't have FreeType and went the imagemagick v6 Route. I think it was version 6.
_________________________ Version v7.5.6 < Threads satisfaction status People who inspire me RickGizmo Ian David jgeoff ntdoc Oooo i hear 8 is coming? just after 7 my friend.
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
Sorry missed that,
Its over my head, sorry i cant help any more.
What you may consider is a Support Ticket as it doesn't sound like its the norm what's happening.
Mark
_________________________ Version v7.5.6 < Threads satisfaction status People who inspire me RickGizmo Ian David jgeoff ntdoc Oooo i hear 8 is coming? just after 7 my friend.
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Basically it looks for the imagefttext() function before it gives the option to use GD2 for CAPTCHA. Is PHP compiled with freetype support? You can see some notes on the function at the link I gave.
It could be this portion: FreeType Linkage with TTF library as that appears to be using the Truetype font library and not the freetype library. I'm not sure if that makes the function unavailable to php or not.
To verify if the function exists, you can make a quick php script:
PHP:
<?php
if (function_exists(imagefttext)) {
echo "Found imagefttext()";
} else {
echo "Could not find imagefttext()";
} // end if
?>
Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Glad to hear you got it up and running. There is a large benefit to using ImageMagick, it has a larger color depth, so users who have trouble seeing the images will be able to see them easier.