fooDigi Posted February 3, 2007 Share Posted February 3, 2007 i'm creating a form that utilizes captcha. i have a couple questions about using the gd library... how can i bend and distort the text, like i see in many captcha's? is it possible to apply layer styles like in photoshop with gd? thx Link to comment https://forums.phpfreaks.com/topic/36952-gd-library-and-captcha/ Share on other sites More sharing options...
corbin Posted February 3, 2007 Share Posted February 3, 2007 Well... I'm not sure how most sites do it, but you could either overlay images for the distorted text, or you could find a weird style of font... I would do the later lol... As far as I know, GD cannot do layers like PS. I've never written a captcha my self, but they generally work like this. -Create an image from a random base jpeg... -Over lay random text over it -Set a session variable to what the random text was -Out put the image Hope my post helped, but I'm fairly sure someone will be able to answer better since I do not know much about the GD lib. Link to comment https://forums.phpfreaks.com/topic/36952-gd-library-and-captcha/#findComment-176352 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.