mirror of
https://github.com/Afilmory/afilmory
synced 2026-04-24 23:05:05 +00:00
fix(exif): use original HEIC buffer for EXIF extraction (#71)
This commit is contained in:
@@ -44,7 +44,7 @@ export async function extractExifData(
|
||||
`${crypto.randomUUID()}.jpg`,
|
||||
)
|
||||
|
||||
await writeFile(tempImagePath, imageBuffer)
|
||||
await writeFile(tempImagePath, originalBuffer || imageBuffer)
|
||||
const exifData = await exiftool.read(tempImagePath)
|
||||
const result = handleExifData(exifData, metadata)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user