protected static function handleImg($id) {
        $img = new \Imagick(Config::get('CAPTCHA_PIC_PATH').$id);
        $img->swirlImage(mt_rand(15, 25));
        $img->motionBlurImage(1.5, 3, mt_rand(0, 360));
        $img->adaptiveResizeImage(Config::get('CAPTCHA_WIDTH'), Config::get('CAPTCHA_HEIGHT'), false);
        $img->addNoiseImage(\Imagick::NOISE_GAUSSIAN, \Imagick::CHANNEL_ALL);
        $img->writeImage(Config::get('CAPTCHA_PIC_PATH').$id);
    }
protected static function handleImg($id) {
        $img = new \Imagick(Config::get('CAPTCHA_PIC_PATH').$id);
        $img->swirlImage(mt_rand(15, 25));
        $img->motionBlurImage(1.5, 3, mt_rand(0, 360));
        $img->adaptiveResizeImage(Config::get('CAPTCHA_WIDTH'), Config::get('CAPTCHA_HEIGHT'), false);
        $img->addNoiseImage(\Imagick::NOISE_GAUSSIAN, \Imagick::CHANNEL_ALL);
        $img->writeImage(Config::get('CAPTCHA_PIC_PATH').$id);
    }
protected static function handleImg ( $ id ) { $ img = new \ Imagick ( Config :: get ( 'CAPTCHA_PIC_PATH' ) . $ id ) ; $ img -> swirlImage ( mt_rand ( 15 , 25 ) ) ; $ img -> motionBlurImage ( 1.5 , 3 , mt_rand ( 0 , 360 ) ) ; $ img -> adaptiveResizeImage ( Config :: get ( 'CAPTCHA_WIDTH' ) , Config :: get ( 'CAPTCHA_HEIGHT' ) , false ) ; $ img -> addNoiseImage ( \ Imagick :: NOISE_GAUSSIAN , \ Imagick :: CHANNEL_ALL ) ; $ img -> writeImage ( Config :: get ( 'CAPTCHA_PIC_PATH' ) . $ id ) ; }
Process image to prevent captcha recognition.
@param $id
Process image to prevent captcha recognition .