mime.py
Source: sunholo/utils/mime.py
Functions
guess_mime_type(file_path: str) -> str
Guess the mime type based on the file extension.
Args: file_path (str): The path or URL of the image file.
Returns: str: The guessed image type (e.g., "jpeg", "png", "gif", etc.) or None if the extension is not recognized.