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

Camera pickImages returns wrong exif when selecting multiple images on iOS #707

Closed
gbresciano opened this issue Nov 27, 2021 · 2 comments · Fixed by #712
Closed

Camera pickImages returns wrong exif when selecting multiple images on iOS #707

gbresciano opened this issue Nov 27, 2021 · 2 comments · Fixed by #712

Comments

@gbresciano
Copy link

Bug Report

Plugin(s)

Camera

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 3.3.2
  @capacitor/core: 3.3.2
  @capacitor/android: 3.3.2
  @capacitor/ios: 3.3.2

Installed Dependencies:

  @capacitor/cli: 3.3.2
  @capacitor/core: 3.3.2
  @capacitor/android: 2.0.1
  @capacitor/ios: 3.3.2

Platform(s)

iOS

Current Behavior

I ran this on iOS and selected 3 photos that have completely different exif values
All the photos in the logged photos array have the same exif data (which corresponds to the first photo)

Expected Behavior

I expected each photo to have its own exif

Code Reproduction

  Camera.pickImages({
    quality: 100,
    limit: 10,
    correctOrientation: false,
  }).then(({ photos }) => {
    console.log("=== photos", photos);
  });
@gbresciano
Copy link
Author

I sorted this out replacing result with img in CameraPlugin.swift:190
if let assetId = result.assetIdentifier { => if let assetId = img.assetIdentifier {

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 30, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants