sounds.utils

Functions

network_logo(→ str | None)

Formats a network logo based on the current recipe

image_from_recipe(→ str | None)

Formats an image from a recipe

Module Contents

Formats a network logo based on the current recipe

:param logo_recipe e.g. http://example.com/{type}/{size}_{size}.{format} :param img_type An accepted image type :param size The required image size in pixels

:return the full image URL as a string

sounds.utils.image_from_recipe(image_recipe: str, size: int, height: int | None = None, format='jpg', img_type: sounds.constants.ImageType | None = None) str | None

Formats an image from a recipe

:param logo_recipe e.g. http://example.com/{type}/{size}_{size}.{format}

:return the full image URL as a string