Project-Image-Uploader/backend
matthias.lotz 170e1c20e6 feat: automatic preview generation on database init
Task 7: Batch-Migration Automation
- Add generateMissingPreviews() method to DatabaseManager
- Automatically runs after schema creation
- Finds all images without preview_path
- Generates previews for existing images on startup
- Graceful error handling (won't break server start)
- Progress logging: 'Found X images without preview, generating...'
- No manual script needed - fully automated

Benefits:
- Works on every backend restart
- Incremental (only missing previews)
- Non-blocking database initialization
- Perfect for deployments and updates
2025-10-30 20:51:35 +01:00
..
src feat: automatic preview generation on database init 2025-10-30 20:51:35 +01:00
.dockerignore Initial Commit 2025-10-15 21:33:00 +02:00
.env.example Initial Commit 2025-10-15 21:33:00 +02:00
.gitignore Initial Commit 2025-10-15 21:33:00 +02:00
Dockerfile refactor(backend): upgrade to Node 24 LTS (v24.11.0) 2025-10-28 20:35:03 +01:00
package.json feat: add Sharp library and ImagePreviewService 2025-10-30 20:25:33 +01:00