Skip to content

fix: Robust 3MF thumbnail generation with webp support and recursive …#29

Merged
TechJeeper merged 2 commits into
mainfrom
fix-3mf-webp-thumbnails-12167319799949594803
Dec 21, 2025
Merged

fix: Robust 3MF thumbnail generation with webp support and recursive …#29
TechJeeper merged 2 commits into
mainfrom
fix-3mf-webp-thumbnails-12167319799949594803

Conversation

@TechJeeper

Copy link
Copy Markdown
Owner

…search

Refactored get3MFImages in main.js to use a helper function isImage for validating image files. This helper normalizes file paths, checks for common image extensions including .webp, and explicitly excludes macOS system files (__MACOSX folders and ._ files) to prevent false positives. This ensures a reliable recursive search for thumbnails within 3MF archives, even when images are located in subdirectories like Auxiliaries/Model Pictures/.

google-labs-jules Bot and others added 2 commits December 21, 2025 23:39
…search

Refactored `get3MFImages` in `main.js` to use a helper function `isImage` for validating image files. This helper normalizes file paths, checks for common image extensions including `.webp`, and explicitly excludes macOS system files (`__MACOSX` folders and `._` files) to prevent false positives. This ensures a reliable recursive search for thumbnails within 3MF archives, even when images are located in subdirectories like `Auxiliaries/Model Pictures/`.
@TechJeeper TechJeeper merged commit 583be33 into main Dec 21, 2025
@TechJeeper TechJeeper deleted the fix-3mf-webp-thumbnails-12167319799949594803 branch December 21, 2025 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant