MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / isImageFile

Function isImageFile

src/utils/imageFileLookupPolicy.ts:54–57  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

52}
53
54export function isImageFile(path: string): boolean {
55 const lowerPath = path.toLowerCase();
56 return IMAGE_EXTENSIONS.some(ext => lowerPath.endsWith(ext));
57}
58
59export function getPathSuffixes(path: string): string[] {
60 const parts = normalizeImagePath(path).split('/');

Callers 2

collectImageFilesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected