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

Function normalizeImageZipPath

src/parsers/imageZipExport.ts:30–36  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

28}
29
30export function normalizeImageZipPath(path: string): string {
31 let normalized = path.replace(/\\/g, '/');
32 if (!normalized.startsWith('images/')) {
33 normalized = 'images/' + normalized;
34 }
35 return normalized;
36}
37
38export function toJpegZipPath(path: string): string {
39 return normalizeImageZipPath(path).replace(/\.[^.]+$/, '.jpg');

Callers 2

toJpegZipPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected