sounds.utils¶
Functions¶
|
Formats a network logo based on the current recipe |
|
Formats an image from a recipe |
Module Contents¶
- sounds.utils.network_logo(logo_recipe: str, img_type: sounds.constants.ImageType = ImageType.COLOUR, size: int = 450, img_format: str = 'png') str | None¶
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