MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / isSupportedImageFormat

Function isSupportedImageFormat

src/core/tools/helpers/imageHelpers.ts:89–91  ·  view source on GitHub ↗
(extension: string)

Source from the content-addressed store, hash-verified

87 * Checks if a file extension is a supported image format
88 */
89export 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

Callers 3

handleBinaryFileMethod · 0.90
executeLegacyMethod · 0.90
resolveImageMentionsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected