public function getImgDataBase64($string, $size = 128, $color = '', $bg = '')
    {
        return sprintf('data:%s;base64,%s', $this->_instance->mineType, base64_encode($this->getImgData($string, $size, $color, $bg)));
    }
public function getImgDataBase64($string, $size = 128, $color = '', $bg = '')
    {
        return sprintf('data:%s;base64,%s', $this->_instance->mineType, base64_encode($this->getImgData($string, $size, $color, $bg)));
    }
public function getImgDataBase64 ( $ string , $ size = 128 , $ color = '' , $ bg = '' ) { return sprintf ( 'data:%s;base64,%s' , $ this -> _instance -> mineType , base64_encode ( $ this -> getImgData ( $ string , $ size , $ color , $ bg ) ) ) ; }
Get Image data in base64.

@param $string string.
$size side of image.
$color foreground color of image.
$bg background color of image.

@since 3.0.0

@return base64
Get Image data in base64 .