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

Request #16433 Image Driver: If image is too small, no text is created
Submitted: 2009-07-13 17:26 UTC
From: tacker Assigned: wenz
Status: Closed Package: Text_CAPTCHA (version 0.3.1)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 39 + 40 = ?

 
 [2009-07-13 17:26 UTC] tacker (Markus Tacker)
Description: ------------ Text_CAPTCHA does not care if the phrase would fit in the given image size. In line 213 of /usr/share/php/Text/CAPTCHA/Driver/Image.php Image_Text::measurize() is called w/o the $force parameter beeing true. This may result in the text not beeing added to the image, if it is too large. The attached patch handles this by decreasing the font size of the text until it fits in the image. This fixes bug #13478

Comments

 [2009-07-13 17:28 UTC] tacker (Markus Tacker)
The following patch has been added/updated: Patch Name: ImagePatch Revision: 1247488122 URL: http://pear.php.net/bugs/patch-display.php?bug=16433&patch=ImagePatch&revision=1247488122&display=1
 [2009-07-16 18:29 UTC] wenz (Christian Wenz)
-Status: Open +Status: Analyzed
great, thank you, will be in the next release (which is immanent). Will update the bug report once it´s out.
 [2009-07-28 02:09 UTC] wenz (Christian Wenz)
-Status: Analyzed +Status: Closed -Assigned To: +Assigned To: wenz
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/ Implemented in 0.4.0. Thanks for the patch!