(extension: string)
| 87 | * Checks if a file extension is a supported image format |
| 88 | */ |
| 89 | export function isSupportedImageFormat(extension: string): boolean { |
| 90 | return SUPPORTED_IMAGE_FORMATS.includes(extension.toLowerCase() as (typeof SUPPORTED_IMAGE_FORMATS)[number]) |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * Validates if an image can be processed based on size limits and model support |
no outgoing calls
no test coverage detected