MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / isImageFilename

Function isImageFilename

src/utils/colmapPathResolver.ts:153–156  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

151const IMAGE_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.webp', '.tiff', '.tif'];
152
153function isImageFilename(name: string): boolean {
154 const lower = name.toLowerCase();
155 return IMAGE_EXTENSIONS.some((ext) => lower.endsWith(ext));
156}
157
158function isImagesNamedDir(dir: string): boolean {
159 const lower = dir.toLowerCase();

Callers 1

resolveImagesDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected