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

Function getImageLookupKeys

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

Source from the content-addressed store, hash-verified

111}
112
113export function getImageLookupKeys(path: string): string[] {
114 const keys: string[] = [];
115
116 for (const suffix of getImagePathLookupSuffixes(path)) {
117 keys.push(suffix);
118
119 const lowerSuffix = suffix.toLowerCase();
120 if (lowerSuffix !== suffix) {
121 keys.push(lowerSuffix);
122 }
123 }
124
125 return keys;
126}
127
128export function buildImageUrl(imageUrlBase: string, imageName: string): UrlCandidate {
129 let normalizedName = normalizeImagePath(imageName);

Callers 2

collectImageFilesFunction · 0.90

Calls 1

Tested by

no test coverage detected