static function genPic($formula) {
        $id = uniqid();
        Tex2png::create($formula)->saveTo(Config::get('CAPTCHA_PIC_PATH').$id)->generate();
        self::handleImg($id);
        return $id;
    }
static function genPic($formula) {
        $id = uniqid();
        Tex2png::create($formula)->saveTo(Config::get('CAPTCHA_PIC_PATH').$id)->generate();
        self::handleImg($id);
        return $id;
    }
static function genPic ( $ formula ) { $ id = uniqid ( ) ; Tex2png :: create ( $ formula ) -> saveTo ( Config :: get ( 'CAPTCHA_PIC_PATH' ) . $ id ) -> generate ( ) ; self :: handleImg ( $ id ) ; return $ id ; }
Generate PNG using Tex2png with TeX formatted formula.

@param $formula
@return string
Generate PNG using Tex2png with TeX formatted formula .