sounds.utils ============ .. py:module:: sounds.utils Functions --------- .. autoapisummary:: sounds.utils.network_logo sounds.utils.image_from_recipe Module Contents --------------- .. py:function:: 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 .. py:function:: 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