()
| 14718 | } |
| 14719 | } catch (e) { /* ignore */ } |
| 14720 | if (!thumbnail || !thumbnail.startsWith('data:image')) { |
| 14721 | thumbnail = generateTypedPlaceholder('svg'); |
| 14722 | } |
| 14723 | await window.electron.saveThumbnail(model.filePath, thumbnail); |
| 14724 | if (!skipHash && (!model.hash || model.hash === '')) { |
| 14725 | try { await window.electron.calculateFileHash(model.filePath); } catch (e) { /* ignore */ } |
| 14726 | } |
| 14727 | return; |
| 14728 | } |
| 14729 | |
| 14730 | // 0c. Image-only previews: F3D / ChiTuBox / VOXL embedded thumbs (no mesh) |
| 14731 | if (isImageOnlyPreviewExt(fileExt)) { |
| 14732 | console.log( |
| 14733 | `[DEBUG] generateThumbnailsForModels: Attempting to extract embedded thumbnail for ${model.filePath}` |
| 14734 | ); |
no test coverage detected