Skip to content

fix(exif): use original HEIC buffer for EXIF extraction #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2025

Conversation

xxxbrian
Copy link
Contributor

Summary

  • Use original HEIC buffer instead of heicConvert processed data for EXIF extraction
  • Fix missing EXIF data issue with HEIC files

Problem

When processing HEIC files, we use heicConvert to convert them to JPEG format. However, some EXIF data gets lost during this conversion process.

Solution

// Before
await writeFile(tempImagePath, imageBuffer)

// After  
await writeFile(tempImagePath, originalBuffer || imageBuffer)

For HEIC files, use the original buffer for EXIF extraction to preserve all metadata. For other formats, continue using the processed buffer.

@Innei Innei merged commit ae28977 into Afilmory:main Jul 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants