def METHOD_NAME(
    text,
    outname,
    box,
    bg_color=DEFAULT_CONFIG["thumb_bg_color"],
    font=DEFAULT_CONFIG["thumb_font"],
    font_color=DEFAULT_CONFIG["thumb_font_color"],
    font_size=DEFAULT_CONFIG["thumb_font_size"],
    options=None,
):
    """Create a thumbnail image."""
    kwargs = {}
    if font:
        kwargs["font"] = ImageFont.truetype(font, font_size)
    if font_color:
        kwargs["fill"] = font_color
    img = PILImage.new("RGB", box, bg_color)
    anchor = (box[0] // 2, box[1] // 2)
    d = ImageDraw.Draw(img)
    logger.info(f"kwargs: {kwargs}")
    d.text(anchor, text, anchor="mm", **kwargs)
    outformat = "JPEG"
    logger.info("Save thumnail image: %s (%s)", outname, outformat)
    save_image(img, outname, outformat, options=options, autoconvert=True)