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

Exif data lost if picture retrieved from gallery in DATA_URL on android #867

Open
2 of 3 tasks
mariusvn opened this issue Nov 7, 2023 · 0 comments · May be fixed by #868
Open
2 of 3 tasks

Exif data lost if picture retrieved from gallery in DATA_URL on android #867

mariusvn opened this issue Nov 7, 2023 · 0 comments · May be fixed by #868

Comments

@mariusvn
Copy link

mariusvn commented Nov 7, 2023

Bug Report

Problem

What is expected to happen?

Have the base64 of the picture with all the original jpeg exif metadata in a data url

What does actually happen?

The given picture in the data url never see its exif data back

Information

  • Load an image from the gallery (i use jpeg) on android
  • Check the exif data

Also, I looked at the code, and there should be a loading of exif data in android/CameraLauncher.java:1300 in the processPicture method or at least before the execution of processPicture on android/CameraLauncher.java:781.

Command or Code

// This is approximate since i work on angular with @awesome-cordova-plugins/camera
getPicture({
        quality: 50,
        destinationType: DestinationType.DATA_URL,
        encodingType: EncodingType.JPEG,
        mediaType: MediaType.PICTURE,
        targetHeight: 720,
        targetWidth: 1280,
        sourceType: PictureSourceType.PHOTOLIBRARY,
    });

Environment, Platform, Device

Galaxy Tab S8, Android 13

Version information

Ionic 5,
Android 13,
Editing on windows,
Angular 10

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
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 a pull request may close this issue.

1 participant