Gregwar / Captcha

PHP Captcha library
MIT License
1.73k stars 290 forks source link

long generation pictures #27

Open visavi opened 9 years ago

visavi commented 9 years ago

I noticed that in some operating systems, for example windose 7, the generation of images takes a long time and even on centos with a version of php 5.6 image is generated 0.4 sec, is it possible to somehow speed this I did profiling and noticed multiple function call floor and ceil k-9m8oufnrfzgxbre9qmknvn7pcyiboj3qvoruycdg0

wfxiaolong commented 9 years ago

up. ..

sinute commented 9 years ago

i got the same problem, with setInterpolation(false) speed up a lot

setInterpolation($interpolate), enable or disable the interpolation (enabled by default), disabling it will be quicker but the images will look uglier

may help you :)

Gregwar commented 9 years ago

Disabling distortion also helps

luoziluojun commented 8 years ago

it is too slow Thinkphp's captcha lib is better than this