import base64


def get_image_base64_content(image_file):
    """获取图片base64编码信息

    Args:
        image_file: 图片

    Returns:
        base64编码的图片信息
    """
    with open(image_file, 'rb') as fp:
        return str(base64.b64encode(fp.read()), 'utf-8')