MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / find3dModelZipEntry

Function find3dModelZipEntry

main.js:6930–6944  ·  view source on GitHub ↗

Locate main model part in a 3MF zip (JSZip contents). Handles alternate paths/casing.

(contents)

Source from the content-addressed store, hash-verified

6928 }
6929 } else {
6930 // Use default thumb only — multi-thumb strings are joined with `::`
6931 const imagePayload = getThumbnailImagePayload(model.thumbnail);
6932
6933 if (!imagePayload) {
6934 console.error(`Invalid thumbnail format for ${filePath}`);
6935 failureCount++;
6936 } else {
6937 try {
6938 // Generate tags using the thumbnail image
6939 tags = await aitagging.generateTagsForImage(
6940 imagePayload.base64,
6941 settings.aiModel,
6942 { ...tagOptions, mimeType: imagePayload.mimeType },
6943 2000,
6944 5,
6945 filePath
6946 );
6947 successCount++;

Callers 2

extract3MFMetadataFunction · 0.85
main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected