Add STL thumbnail generation support

- Add trimesh and matplotlib dependencies for software-based 3D rendering
- Create stl_thumbnail service with generate_stl_thumbnail() function
- Handle mesh simplification for large files (>100k vertices)
- Auto-generate thumbnails during STL file upload and ZIP extraction
- Add POST /library/files/{id}/regenerate-thumbnail endpoint
- Add POST /library/generate-stl-thumbnails batch endpoint
- Add "Generate Thumbnails" button to file manager toolbar
- Add "Regenerate Thumbnail" option to file context menu
- Add unit and integration tests for new functionality

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
MisterBeardy
2026-01-29 15:06:01 +01:00
committed by MartinNYHC
co-authored by Claude Opus 4.5
parent 86ad13398a
commit 375d5238d0
9 changed files with 1020 additions and 2 deletions
+4
View File
@@ -37,6 +37,10 @@ qrcode[pil]>=7.4.0
# System monitoring
psutil>=6.0.0
# STL thumbnail generation
trimesh>=4.0.0
matplotlib>=3.8.0
# Authentication
PyJWT>=2.8.0
passlib[bcrypt]>=1.7.4