6 lines
157 B
Python
6 lines
157 B
Python
SUPPORTED_IMAGE_EXTENSIONS = {".png", ".jpg", ".jpeg", ".webp"}
|
|
|
|
|
|
def is_supported_image(path):
|
|
return path.suffix.lower() in SUPPORTED_IMAGE_EXTENSIONS
|