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)    

 [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


 [2009-07-13 17:28 UTC] tacker (Markus Tacker)
The following patch has been added/updated: Patch Name: ImagePatch Revision: 1247488122 URL:
 [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 Implemented in 0.4.0. Thanks for the patch!