Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.2

Bug #13478 Captcha text outside of image boundary
Submitted: 2008-03-24 00:51 UTC
From: jpeterse Assigned:
Status: Bogus Package: Text_CAPTCHA (version 0.3.1)
PHP Version: 5.2.4 OS: Fedora 8 x86_64
Roadmaps: (Not assigned)    

 [2008-03-24 00:51 UTC] jpeterse (Jan Petersen)
Description: ------------ periodically the captcha text is not fully contained within the image container The following settings resulted in the image attached. Test script: --------------- $options = array('font_size' => '24', 'font_path' => './', 'font_file' => 'Austrise.ttf'); $cap = Text_CAPTCHA::factory('Image'); $result = $cap->init(120, 60, $phrase, $options); Expected result: ---------------- Captcha text should be fully visible within the image container Actual result: -------------- Captcha text is periodically going beyond the image container.


 [2008-03-24 07:34 UTC] wenz (Christian Wenz)
Sorry, but your problem does not imply a bug in PEAR itself. For a list of more appropriate places to ask for help using PEAR, please visit as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PEAR. It's always hard to guess how long/high a text will become, especially if using a custom font. Try using a larger CAPTCHA image or a smaller font size (I don't have the font, so I cannot check myself).
 [2008-03-24 23:10 UTC] jpeterse (Jan Petersen)
Hi, I was thinking, that shouldn't the Captcha module make use of - or at least proxy calls to - the Image/Text measurize function ? My problem is, that every 10th or so image is offset so far to the right, or so far from the top, that the text expands beyond the image boundary. Hence, users will have severe challenges in guesstimating that the Captcha phrase is. Br Jan
 [2008-03-25 06:48 UTC] wenz (Christian Wenz)
please resuggest this as a feature request!
 [2009-07-14 07:22 UTC] doconnor (Daniel O'Connor)