Author Topic: (RESOLVED) Can the CAPTCHA image be larger?  (Read 11254 times)

0 Members and 1 Guest are viewing this topic.

buddahboy

  • Full Member
  • ***
  • Posts: 13
(RESOLVED) Can the CAPTCHA image be larger?
« on: December 17, 2013, 05:35:52 PM »
Good day - Having the CAPTCHA feature is great, thanks!  That being said, I'm finding that the CAPTCHA image is rather difficult to make out - are there any options to use a different size or style of CAPTCHA? 

Thanks much
Ron
« Last Edit: December 18, 2013, 12:31:32 PM by buddahboy »

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Can the CAPTCHA image be larger?
« Reply #1 on: December 17, 2013, 09:27:19 PM »
The geometry and the style of the CAPTCHA image in Mibew Messenger 1.6.x is hardcoded in libs/captcha.php file (in draw_captcha function). So, if you want to change the size of the image or its appearance, you should change it there.

buddahboy

  • Full Member
  • ***
  • Posts: 13
Re: Can the CAPTCHA image be larger?
« Reply #2 on: December 17, 2013, 09:30:17 PM »
thanks again faf - appreciate it

smic717394

  • Jr. Member
  • **
  • Posts: 2
Re: Can the CAPTCHA image be larger?
« Reply #3 on: April 22, 2014, 01:23:41 AM »
The geometry and the style of the CAPTCHA image in Mibew Messenger 1.6.x is hardcoded in libs/captcha.php file (in draw_captcha function). So, if you want to change the size of the image or its appearance, you should change it there.

This only makes the image larger but the font inside is still small. What class control the size of the font?

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: (RESOLVED) Can the CAPTCHA image be larger?
« Reply #4 on: April 22, 2014, 07:36:44 AM »
There are no classes in Mibew 1.6.x. Only functions.  :-\

Everything related to CAPTCHA is in the libs/captcha.php file. And according to the official PHP documentation the font size used there is the largest one.

Probably, you can try to use imagettftext function instead of imagestring.

smic717394

  • Jr. Member
  • **
  • Posts: 2
Re: (RESOLVED) Can the CAPTCHA image be larger?
« Reply #5 on: April 28, 2014, 01:14:04 AM »
Thank you. replaced with the line bellow and not its ok. Thank you.
    Imagettftext($image, 16, 0, 30, 22, $white, $font, $security_code);