Skip to content
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

[expo-camera] Save metadata #6428

Merged
merged 5 commits into from
Dec 16, 2019
Merged

Conversation

lukmccall
Copy link
Contributor

@lukmccall lukmccall commented Dec 3, 2019

Why

Resolves #6399.

How

UIImage strips metadata (https://stackoverflow.com/a/25595495). So I've added it manually using Image IO API. Moreover, I've also deleted updateImageSampleMetadata function - it was unuse.

Android bitmap also strips metadata.

TODO

  • iOS
  • Android

Test Plan

@lukmccall lukmccall requested review from tsapeta and bbarthec December 3, 2019 15:28
Copy link
Contributor

@bbarthec bbarthec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👌 Just a little method renaming and confusion about kCGImagePropertyGPSDictionary 😉

packages/expo-camera/ios/EXCamera/EXCamera.m Outdated Show resolved Hide resolved
packages/expo-camera/ios/EXCamera/EXCamera.m Outdated Show resolved Hide resolved
@lukmccall lukmccall requested a review from bbarthec December 5, 2019 14:52
@lukmccall lukmccall force-pushed the @lukmccall/expo-camera-fix-metadata branch from 4d07d49 to 850106f Compare December 12, 2019 13:10
Comment on lines +8 to +10

import androidx.exifinterface.media.ExifInterface;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just move import androidx.exifinterface.media.ExifInterface; below import android.* section 🤔

@tsapeta tsapeta force-pushed the @lukmccall/expo-camera-fix-metadata branch from 850106f to 1748832 Compare December 16, 2019 13:34
@tsapeta tsapeta merged commit 50bc369 into master Dec 16, 2019
@tsapeta tsapeta deleted the @lukmccall/expo-camera-fix-metadata branch December 16, 2019 14:10
prakashbask pushed a commit to prakashbask/expo that referenced this pull request Mar 16, 2022
# Why

Resolves expo#6399.

# How

UIImage strips metadata (https://stackoverflow.com/a/25595495). So I've added it manually using `Image IO API`. Moreover, I've also deleted `updateImageSampleMetadata` function - it was unuse.

Android bitmap also strips metadata.
# TODO

- [x] iOS
- [x] Android

# Test Plan

- https://snack.expo.io/@lukaszkosmaty/github---camera---fix-metadata ✅(returns correct metadata)
- NCL ✅
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.

[expo-camera] Does not save the Exif data
3 participants