feat(transcode): add initial camera RAW image support (#435)

- Add centralized RAW file extension set and detection helper for 23 common camera RAW formats
- Update getProxyType and EXTENSION_MIME_TYPES to route RAW formats into the image pipeline
- Add exiftool-vendored runtime dependency and mark as external in build-npm script
- Implement embedded JPEG extraction to temporary file with priority JpgFromRaw2 -> JpgFromRaw -> PreviewImage
- Read and apply EXIF orientation from RAW container to prevent rotation/mirroring issues
- Integrate into TranscodeService.getImageInfo and transcodeImage with proper temporary file cleanup
- Add hasUsablePreview guard in transcodeImageWorkflow to gracefully handle RAW files without embedded previews
- Add unit, service, workflow, and E2E tests for RAW processing
This commit is contained in:
Yiling-J
2026-09-29 21:09:27 +08:00
committed by GitHub
parent 11d21444cf
commit 5fe22ac52c
17 changed files with 999 additions and 62 deletions
+2
View File
@@ -36,6 +36,8 @@ const commonExternal = [
'pdfkit',
'prisma',
'zod',
// Exclude from bundling because it relies on native binaries/dynamic loading
'exiftool-vendored',
]
// Extract exact dependency versions from workspace package.json files