Sharp throws on unsupported formats (HEIC, corrupt files, etc.) and the error was propagated outside the try/catch, crashing the server. Moved the mkdir + sharp pipeline inside the catch block so any failure returns null and streamPhoto falls through to serving the original file. |
||
|---|---|---|
| .. | ||
| helpersService.ts | ||
| immichService.ts | ||
| photoResolverService.ts | ||
| synologyService.ts | ||
| thumbnailService.ts | ||
| trekPhotoCache.ts | ||
| unifiedService.ts | ||